所以我刚更新到Mountain Lion Developer Preview2,突然间我的python开发环境就快崩溃了。在尝试创建一个新的virtualenv时,我得到了以下信息:
jcroft@MacBook-Pro:~/Development/Python/_VirtualEnvs$ virtualenv test
New python executable in test/bin/python
ERROR: The executable test/bin/python is not functioning
ERROR: It thinks sys.prefix is u'/System/Library/Frameworks/Python.framework/Versions/2.7' (should be u'/Users/jcroft/Development/Python/_VirtualEnvs/test')
ERROR: virtualenv is not compatible with this system or executable
有什么线索吗?提前谢谢!在
您需要确保将
/usr/local/share/python
添加到您的PATH
中,否则它仍将尝试使用由Apple安装的easy_install。在更多信息:https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python
相关问题 更多 >
编程相关推荐