我刚刚将我的Mac从Snow Leopard更新为Lion.然后我需要安装virtualenv和virtualenvwrapper.我用过两者easy_install.我还将virtualenvwrapper设置添加到我的.bash_profile文件中,如下所示:
# virtualenvwrapper settings
export WORKON_HOME="~/virtualenvs"
source "/usr/local/bin/virtualenvwrapper.sh"
Run Code Online (Sandbox Code Playgroud)
但在采购时我收到以下错误:
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.
Run Code Online (Sandbox Code Playgroud)
感谢大家的帮助.