【发布时间】:2011-10-19 11:57:16
【问题描述】:
我刚刚将我的 Mac 从 Snow Leopard 更新为 Lion。然后我需要安装virtualenv 和virtualenvwrapper。我同时使用了easy_install。
我还在我的 .bash_profile 文件中添加了 virtualenvwrapper 设置,如下所示:
# 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.
感谢大家的帮助。
【问题讨论】:
标签: python macos osx-lion virtualenv virtualenvwrapper