我刚刚将我的 Mac 从 Snow Leopard 更新为 Lion。然后我需要安装virtualenv
和virtualenvwrapper
. 我两个都用过easy_install
。我还将 virtualenvwrapper 设置添加到我的 .bash_profile 文件中,如下所示:
# virtualenvwrapper settings
export WORKON_HOME="~/virtualenvs"
source "/usr/local/bin/virtualenvwrapper.sh"
但是在采购它时,我收到以下错误:
ERROR: Could not create temporary file name. Make sure TMPDIR is set.
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.
感谢大家的帮助。