2012-02-07 47 views
4

我一直在撞牆試圖讓Mac OS X上的virtualenv(雪豹)與matplotlib和/或Enthought Python分佈很好地玩,以及後一堆不同的有用的建議我認爲我已經打破了我的裝置過去我恢復他們的能力。我現在處於一個虛擬技術不再起作用的地步;我希望如果有人能幫助我處理以下堆棧跟蹤:virtualenv打亂後與matplotlib/EPD

~ $ virtualenv foo 
The --no-site-packages flag is deprecated; it is now the default behavior. 
Traceback (most recent call last): 
File "/Library/Frameworks/EPD64.framework/Versions/Current/bin/virtualenv", line 9, in <module> 
    load_entry_point('virtualenv==1.7', 'console_scripts', 'virtualenv')() 
File "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/virtualenv.py", line 928, in main 
    never_download=options.never_download) 
File "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/virtualenv.py", line 1029, in create_environment 
    site_packages=site_packages, clear=clear)) 
File "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/virtualenv.py", line 1143, in install_python 
    mkdir(lib_dir) 
File "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/site-packages/virtualenv.py", line 399, in mkdir 
    os.makedirs(path) 
File "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/os.py", line 150, in makedirs 
    makedirs(head, mode) 
File "/Library/Frameworks/EPD64.framework/Versions/7.1/lib/python2.7/os.py", line 157, in makedirs 
    mkdir(name, mode) 
OSError: [Errno 20] Not a directory: 'foo/lib' 
+1

你可以運行ls -l〜/ foo並顯示輸出嗎? – mattbornski 2012-02-10 16:11:55

回答

5

它看起來像一些你以前的行爲(或一般「foo」的黑客)都留下了foo文件~ DIR ....例如我能重現誤差:

([email protected]::~) touch foo 
([email protected]::~) virtualenv foo 
" .... same output you saw ending with:" 
OSError: [Errno 20] Not a directory: 'foo/lib' 

刪除文件(或嘗試virtualenv not_so_foo),你應該確定。

+1

是的,我發現這張照片後不久就發現了這個..哈哈。浪費賞金。好吧。感謝 – daltonb 2012-02-19 22:50:29

+0

這是一個給予獎勵的帽子。希望有一些讚揚讓你知道你並不孤單。我們都在那裏;-) – 2012-02-19 22:55:36