【发布时间】:2015-12-04 02:29:49
【问题描述】:
我在系统范围内安装了 python 2.7.9。
然后我在那个 python 版本上安装了virtualenvwrapper。
之后,我安装了pyenv,然后我安装了python 3.3.1
pyenv install 3.3.1
散列该版本的垫片,将pyenv 的$PATH 变量导出到我的bash_profile 文件中(我在Debian Wheezy 上)。
然后,我需要运行那个 python 版本 3.3.1 来处理 Django 项目。
但是,我还需要在那个 python 版本上安装 virtualenvwrapper,它是 3.3.1 而不是 2.7.9
但是当3.3.1激活时,我尝试运行pip install virtualenvwrapper在Python3上安装它,但它一直在寻找系统范围的版本,所以我无法安装它,这是整个回溯:
user@debian:~/python_examples/orthosie$ pyenv local
3.3.1
user@debian:~/python_examples/orthosie$ pip install virtualenvwrapper
You are using pip version 6.0.6, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/dist-packages (from virtualenvwrapper)
user@debian:~/python_examples/orthosie$
我在这里做错了什么?也许我可以从系统范围的virtualenvwrapper 运行它?
提前致谢!
【问题讨论】: