Python 山狮开发者预览2上的virtualenv出现问题

Python 山狮开发者预览2上的virtualenv出现问题,python,django,virtualenv,osx-mountain-lion,Python,Django,Virtualenv,Osx Mountain Lion,因此,我刚刚更新到Mountain Lion Developer Preview 2,突然间我的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 fu

因此,我刚刚更新到Mountain Lion Developer Preview 2,突然间我的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
添加到您的
路径
,否则它仍将尝试使用苹果公司安装的easy_install


此处的更多信息:

如果您以前的python版本与Mountain Lion中包含的版本不同,那么您很可能需要重新构建python包。你试过重新安装virtualenv吗?是的,我删除了我的virtualenv并通过自制重新安装了python,然后用sudo pip安装了virtualenv