我已经使用sudo pip install virtualenvwrapper安装了virtualenvwrapper。但是,当我运行source bash_profile时,我得到这个错误-bash: /usr/local/share/python/virtualenvwrapper.sh:没有这样的文件或目录
这是我的.bash_profile的样子:
export PATH=/usr/local/bin:/usr/local/sbin:${PATH}
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/share/python/virtualenvwrapper.sh我正在运行OSX Mountain Lion,并使用这里提供的说明安装了python https://python-guide.readthedocs.org/en/latest/starting/install/osx/
发布于 2013-04-04 05:55:11
不是将绝对路径传递给source,而是使用动态路径:
source "$(which virtualenvwrapper.sh)"https://stackoverflow.com/questions/15591361
复制相似问题