如何使用Enthought Python Distribution让virtualenv使用正确的sys.path生成Python可执行文件?

Ana*_*til 6 python virtualenv enthought

我在Mac上安装了Enthought Python Distribution版本7.0,然后在easy_installed pip上安装了pip install virtualenv.当我尝试创建虚拟环境时,我得到:

> virtualenv test
New python executable in test/bin/python
ERROR: The executable test/bin/python is not functioning
ERROR: It thinks sys.prefix is '/Library/Frameworks/EPD64.framework/Versions/7.0' (should be '/Users/anand/test')
ERROR: virtualenv is not compatible with this system or executable`
Run Code Online (Sandbox Code Playgroud)

和test/bin不包含任何激活脚本.我怎样才能让virtualenv工作?

谢谢你的帮助!

K.-*_*Aye 6

这个问题在EPD开发者邮件列表中进行了讨论.除其他外,有人提到EPD并没有考虑到virtualenv,并且它有时会出现错误.但是,有人发布了一个链接到我现在正在尝试的摘要解决方案:https: //gist.github.com/845545

HTH,迈克尔