Mac Maverick上的virtualenv AssertionError

时间:2014-01-13 14:36:14

标签: macos virtualenv pip

virtualenv破产了。我已尝试更新,使用pip,setuptools,virtualenv重新安装一系列组合,但没有任何作用。我也使用了酿造医生,但仍然没有任何线索来解决这个问题。有没有人有这个问题,并找到了解决方案?我在安装virtualenv之前错过了一个包吗? 此外,如果您有类似的assertionError,请发表评论。也许我们可以一起找到解决方案 谢谢!

$ virtualenv test1

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenv", line 9, in <module>
    load_entry_point('virtualenv==1.11', 'console_scripts', 'virtualenv')()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 820, in main
    symlink=options.symlink)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 980, in create_environment
    site_packages=site_packages, clear=clear, symlink=symlink))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 1176, in install_python
    copy_required_modules(home_dir, symlink)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 1114, in copy_required_modules
    dst_filename = change_prefix(filename, dst_prefix)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 1079, in change_prefix
    (filename, prefixes)
AssertionError: Filename /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/readline.so does not start with any of these prefixes: ['/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/Users/user1/Library/Python/2.7/lib/python/site-packages', '/Users/user1/.local/lib/python/2.7/site-packages', '/Library/Frameworks/Python.framework/Versions/2.7', '/Users/user1/Library/Python/2.7/site-packages', '/Library/Python/2.7/site-packages']

0 个答案:

没有答案