我用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
经过一个愉快的夜晚狩猎后,我不知道如何解决这个问题。
最佳答案
你好像有版本冲突;注意 setuptools-0.6c11-py2.7.egg
路径,但 /usr/bin/easy_install-2.7
脚本要加载 0.6c12dev-r88846
代替。
后者是开发版;它具有嵌入在版本中的 subversion 存储库的修订号 (dev-r88846
)。
我怀疑你有 两个 python 安装;一个是系统版本(在 /System/Library
中,另一个是使用 python 安装程序安装到 /Library/
中, stub 脚本在 /usr/中bin/
可以与系统python一起安装。
如果是这样,在 /Library/Python/2.7/bin/easy_install-2.7
处会有另一个 stub 副本,它应该可以正常工作。
关于python - easy_install : ImportError: Entry point ('console_scripts' , 'easy_install' ) 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12858779/