easy_install : ImportError: Entry point ('console_scripts', 'easy_install') not found

允我心安 提交于 2019-11-30 21:30:40

问题


I used easy_install to install pip, pip to install django, virtualenv, and virtualenvwrapper.

I have just returned to it a few weeks later and django does not seem to work anymore, but more concerning is I can't start the process over again as easy_install is returning the following error:

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

After a good evening of hunting I am stumped as to how to resolve this.


回答1:


You seem to have a version conflict; note the setuptools-0.6c11-py2.7.egg path, but the /usr/bin/easy_install-2.7 script wants to load 0.6c12dev-r88846 instead.

The latter is a development version; it has the revision number of a subversion repository embedded in the version (dev-r88846).

I suspect you have two python installations; one is the system version (in /System/Library and the other is installed with the python installer into /Library/, and the stub script in /usr/bin/ may be installed with the system python.

If so, there'll be another copy of the stub at /Library/Python/2.7/bin/easy_install-2.7, which should work correctly.




回答2:


I had the same issue, eventually ended up running the 2.7.3 easy_install by /opt/python2.7.3/bin/easy_install which worked fine



来源:https://stackoverflow.com/questions/12858779/easy-install-importerror-entry-point-console-scripts-easy-install-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!