由于我升级到 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有关,但我实际上不再需要它了。所以如果卸载它可以解决问题,我可以做到。