2016-06-15 36 views
0

正確安裝我的新與Ubuntu 14.04和我試圖在第8步使用「http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/」鏈接 蟒蛇安裝的virtualenv:的virtualenv不會在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 

爲什麼我有這樣的權限問題,因爲我是唯一的用戶。

這個由於我不得不重複整個步驟8,在virtualenv中,而不是workon CV」進入,這樣我可以用戶CV2。

+0

做'pip install'而不是'sudo pip install'。 –

回答

0

除非你有一個很好的理由要了最新版本的virtualenv的你不應該pip install它擺在首位。有本地的Ubuntu軟件包對於那些隔離你從這些種類的(感知)的問題。只要做到sudo apt-get install virtualenvwrapper python-virtualenv,你就大功告成了。

您可以隨時與apt-cache search SOME_PACKAGE_NAME

搜索可用的軟件包

至於你的行爲問題:你可能是唯一使用你的計算機的人,但是linux操作系統總是有多個用戶實體。使用sudo可以根據用戶運行以下命令進行更改。對於你的pip用例來說,誰擁有緩存目錄並不重要。另外,點安裝實際上說你需要的一切已經存在於你的機器上。

相關問題