Python easy_install : ImportError: 未找到入口点 ('console_scripts', 'easy_install')
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12858779/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
easy_install : ImportError: Entry point ('console_scripts', 'easy_install') not found
提问by xragon
I used easy_install to install pip, pip to install django, virtualenv, and virtualenvwrapper.
我使用easy_install安装pip,pip安装django、virtualenv和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:
几周后我刚刚回到它,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
After a good evening of hunting I am stumped as to how to resolve this.
经过一个愉快的狩猎之夜,我对如何解决这个问题感到困惑。
回答by Martijn Pieters
You seem to have a version conflict; note the setuptools-0.6c11-py2.7.eggpath, but the /usr/bin/easy_install-2.7script wants to load 0.6c12dev-r88846instead.
你好像有版本冲突;注意setuptools-0.6c11-py2.7.egg路径,但/usr/bin/easy_install-2.7脚本想要加载0.6c12dev-r88846。
The latter is a development version; it has the revision number of a subversion repository embedded in the version (dev-r88846).
后者是开发版;它具有嵌入在版本 ( dev-r88846)中的 subversion 存储库的修订号。
I suspect you have twopython installations; one is the system version (in /System/Libraryand the other is installed with the python installer into /Library/, and the stub script in /usr/bin/may be installed with the system python.
我怀疑你有两个python 安装;一个是系统版本(in /System/Library,另一个是用python安装程序安装的/Library/,里面的存根脚本/usr/bin/可能是和系统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.
如果是这样,将在 处有另一个存根副本/Library/Python/2.7/bin/easy_install-2.7,它应该可以正常工作。
回答by Shimonbd
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
我遇到了同样的问题,最终通过 /opt/python2.7.3/bin/easy_install 运行了 2.7.3 easy_install,效果很好

