小编car*_*o_g的帖子

Mac OS X Lion上的Virtualenvwrapper错误

我刚刚将我的Mac从Snow Leopard更新为Lion.然后我需要安装virtualenvvirtualenvwrapper.我用过两者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)

感谢大家的帮助.

python macos virtualenv virtualenvwrapper osx-lion

8
推荐指数
1
解决办法
4376
查看次数

标签 统计

macos ×1

osx-lion ×1

python ×1

virtualenv ×1

virtualenvwrapper ×1