xra*_*gon 27 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
Run Code Online (Sandbox Code Playgroud)
经过一个愉快的狩猎之夜后,我很难过如何解决这个问题.
你似乎有版本冲突; 注意setuptools-0.6c11-py2.7.egg
路径,但/usr/bin/easy_install-2.7
脚本想要加载0.6c12dev-r88846
.
后者是一个开发版本; 它具有嵌入在version(dev-r88846
)中的subversion存储库的修订号.
我怀疑你有两个 python安装; 一个是系统版本(在/System/Library
另一个中安装了python安装程序/Library/
,并且stub脚本/usr/bin/
可以与系统python一起安装).
如果是这样,那么将存在另一个存根副本/Library/Python/2.7/bin/easy_install-2.7
,它应该可以正常工作.
归档时间: |
|
查看次数: |
23439 次 |
最近记录: |