ImportError:没有名为'virtualenvwrapper'的模块

时间:2013-10-25 06:55:34

标签: python terminal virtualenvwrapper

自从我升级到OS X 10.9后,我在打开新终端时收到此消息:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named 'virtualenvwrapper'
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=/usr/bin/python and
that PATH is set properly.

问题似乎与virtualenv有关,但实际上我不再需要了。因此,如果卸载它可以解决问题,我可以做到。

1 个答案:

答案 0 :(得分:0)

您没有virtualenvwrapper,可以使用pip安装它,也可以从pypi下载整个tar.zip文件,然后运行python setup.py。最好的方法是使用pip