easy_install:ImportError:找不到入口点('console_scripts','easy_install')

时间:2012-10-12 12:10:44

标签: python macos easy-install

我使用easy_install来安装pip,pip来安装django,virtualenv和virtualenvwrapper。

几周后我刚回到它并且django似乎不再起作用了,但更令人担忧的是我无法再次启动该过程因为easy_install返回了以下错误:

Traceback (most recent call last):
  File "/usr/bin/easy_install-2.7", line 10, in <module>
    load_entry_point('setuptools==0.6c12dev-r88846', 'console_scripts', 'easy_install')()
  File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 318, in load_entry_point
  File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2220, in load_entry_point
ImportError: Entry point ('console_scripts', 'easy_install') not found

经过一个愉快的狩猎之夜后,我很难过如何解决这个问题。

2 个答案:

答案 0 :(得分:9)

您似乎存在版本冲突;请注意setuptools-0.6c11-py2.7.egg路径,但/usr/bin/easy_install-2.7脚本要加载0.6c12dev-r88846

后者是开发版;它具有嵌入在版本(dev-r88846)中的subversion存储库的修订号。

我怀疑你有两个 python安装;一个是系统版本(在/System/Library中,另一个是随python安装程序一起安装到/Library/中,/usr/bin/中的存根脚本可以与系统python一起安装。

如果是这样,/Library/Python/2.7/bin/easy_install-2.7将存在另一个存根副本,该副本应该可以正常工作。

答案 1 :(得分:1)

我遇到了同样的问题,最终最终运行了2.7.3 easy_install /opt/python2.7.3/bin/easy_install工作得很好

相关问题