virtualenvwrapper安装错误

时间:2012-08-27 01:19:53

标签: python virtualenv virtualenvwrapper

我已通过pip安装了virtualenvwrapperpip。我在.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。

1 个答案:

答案 0 :(得分:0)

运行which virtualenv以查看virtualenv的路径