我已经安装pip
并virtualenvwrapper
通过pip
. 我将以下行添加到我的.bashrc
# virutalenvwrapper
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
source /usr/local/bin/virtualenvwrapper.sh
来源后出现错误.bash_profile
:
$ source ~/.bash_profile
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named virtualenvwrapper.hook_loader
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenv has been installed for
VIRTUALENVWRAPPER_PYTHON=/Library/Frameworks/Python.framework/Versions/2.7/bin/python and that PATH is
set properly.
这是什么错误?我见过很多人有同样的错误,我已经尝试了列出的建议,但似乎没有一个适合我。
我正在运行 OS X Mountain Lion 和 Python 2.7。