我一直在用头撞墙,试图让 Mac OS X(雪豹)上的 virtualenv 与 matplotlib 和/或 Enthought Python Distribution 很好地配合使用,并且在遵循了一堆不同的有用建议后,我认为我已经坏了我的安装超出了我恢复它们的能力。我现在处于 virtualenv 不再工作的地步。如果有人可以帮助我处理以下堆栈跟踪,我将不胜感激:
~ $ 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'