2016-06-15 10 views
0

に正しくインストールしていないと私はステップ8で「http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/」リンク を使用してPython用virtualenvのをインストールしようとしています:virtualenvのは、私はUbuntuの14.04で新しい午前のUbuntu

enter code [email protected]:~$ sudo pip install virtualenv virtualenvwrapper 
[sudo] password for vasu: 
The directory '/home/vasu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
The directory '/home/vasu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. 
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/dist-packages 
Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in /usr/local/lib/python2.7/dist-packages 
Requirement already satisfied (use --upgrade to upgrade): stevedore in/usr/local/lib/python2.7/dist-packages (from virtualenvwrapper) 
Requirement already satisfied (use --upgrade to upgrade): virtualenv-clone in /usr/local/lib/python2.7/dist-packages (from virtualenvwrapper) 
Requirement already satisfied (use --upgrade to upgrade): pbr>=1.6 in /usr/local/lib/python2.7/dist-packages (from stevedore->virtualenvwrapper) 
Requirement already satisfied (use --upgrade to upgrade): six>=1.9.0 in /usr/local/lib/python2.7/dist-packages (from stevedore->virtualenvwrapper) 
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. 
SNIMissingWarning 
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. 
InsecurePlatformWarningre 
私はこの権限の問題を持っていないのはなぜ

、私は唯一のユーザーだからです。私は、ユーザーCV2をすることができるように「ではなくworkon CVのvirtualenvの中に入るように全体の手順8を繰り返す必要がありそのため

+0

'sudo pip install'ではなく' pip install'を実行します。 –

答えて

0

あなたはvirtualenvのあなたの非常に最新のバージョンにしたいために非常に良い理由がない限り最初の場所でpip installそれをべきではありません。ネイティブUbuntuのパッケージは、(認知)の問題、これらの種類からあなたを隔離するもののためにあります。ただ、sudo apt-get install virtualenvwrapper python-virtualenvを行うとすれば完了です。

あなたはいつもapt-cache search SOME_PACKAGE_NAME

でご利用可能なパッケージを検索することができます

あなたの行為はあなたのコンピュータを使用する唯一の人間かもしれませんが、Linux OSは常に複数のユーザエンティティを持っています。 sudoを使用すると、次のコマンドが実行されるユーザーとして変更されます。あなたのpipユースケースでは、誰がキャッシュディレクトリを所有しているかは重要ではありません。また、ピップインストールでは実際に必要なものはすべてあなたのマシンに既に存在していると言われています。

関連する問題