Virtualenvwrapper未正确安装

时间:2014-07-18 17:47:57

标签: python python-3.x virtualenvwrapper

我安装了virtualenvwrapper,但是当我运行which virtualenvwrapper时,我什么都没得到。 当我尝试使用pip3重新安装时,这就是我得到的。

~: $ pip3 install virtualenvwrapper
Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in /usr/local/lib/python3.4/site-packages
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python3.4/site-packages (from virtualenvwrapper)
Requirement already satisfied (use --upgrade to upgrade): virtualenv-clone in /usr/local/lib/python3.4/site-packages (from virtualenvwrapper)
Requirement already satisfied (use --upgrade to upgrade): stevedore in /usr/local/lib/python3.4/site-packages (from virtualenvwrapper)
Cleaning up...

我错过了什么?

1 个答案:

答案 0 :(得分:1)

安装virtualenvwrapper后,您需要

export WORKON_HOME=~/Envs
source /usr/local/bin/virtualenvwrapper.sh

获取这些功能(例如virtualenvwrappermkvirtualenvcdvirtualenv,...)。

要使其永久化,只需在您的~/.bashrc文件上方放两行。