我安装了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...
我错过了什么?
答案 0 :(得分:1)
安装virtualenvwrapper
后,您需要
export WORKON_HOME=~/Envs
source /usr/local/bin/virtualenvwrapper.sh
获取这些功能(例如virtualenvwrapper
,mkvirtualenv
,cdvirtualenv
,...)。
要使其永久化,只需在您的~/.bashrc
文件上方放两行。