【问题标题】:How can I get virtualenv to produce Python executables with the correct sys.path using the Enthought Python Distribution?如何让 virtualenv 使用 Enthought Python Distribution 生成具有正确 sys.path 的 Python 可执行文件?
【发布时间】:2011-06-29 23:57:53
【问题描述】:

我在 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`

并且 test/bin 不包含任何激活脚本。如何让 virtualenv 工作?

感谢您的帮助!

【问题讨论】:

  • 我也很想知道这个问题的答案!

标签: python virtualenv enthought


【解决方案1】:

在 EPD 开发人员邮件列表中讨论了这个问题。 其中提到 EPD 并没有考虑到 virtualenv 并且有时它有它的错误。 但是,有人发布了一个指向我现在正在尝试的总结解决方案的链接: https://gist.github.com/845545

HTH, 迈克尔

【讨论】:

  • 请注意,Enthought 的最新版本,称为 Canopy,似乎在内部积极使用 virtualenv。
猜你喜欢
  • 2015-06-14
  • 1970-01-01
  • 2013-04-14
  • 2013-10-20
  • 1970-01-01
  • 1970-01-01
  • 2016-06-04
  • 1970-01-01
  • 2015-07-06
相关资源
最近更新 更多