2011-02-18 28 views
6

我在Mac上安裝了Enthought Python Distribution版本7.0,然後easy_installed pip,然後做了pip安裝virtualenv。當我嘗試創建虛擬環境時,我得到:如何使用Enthought Python Distribution獲得virtualenv以生成帶有正確sys.path的Python可執行文件?

> 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的工作?

感謝您的幫助!

+0

我會有興趣知道這個問題的答案呢! – astrofrog 2011-03-22 11:47:11

回答

6

這個問題在EPD開發者郵件列表上討論過。 其中有人提到EPD沒有和virtualenv放在一起,有時候它有缺陷。 然而,有人發佈一個鏈接到一個概括的解決方案,我現在嘗試自己: https://gist.github.com/845545

HTH, 邁克爾

+0

不夠好被接受爲答案? – 2011-09-11 22:37:00

相關問題