2016-06-15 38 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用例来说,谁拥有缓存目录并不重要。另外,点安装实际上说你需要的一切已经存在于你的机器上。

相关问题