ubuntu中easy_install 出现 ImportError: Entry point ('console_scripts', 'easy_install') not found,,使用easy_insta


使用easy_install安装python包时遇到下面错误:

Traceback (most recent call last):  File "/usr/local/bin/easy_install", line 9, in <module>    load_entry_point('distribute', 'console_scripts', 'easy_install')()  File "/usr/local/lib/python2.7/dist-packages/setuptools-3.3-py2.7.egg/pkg_resources.py", line 351, in load_entry_point    return get_distribution(dist).load_entry_point(group, name)  File "/usr/local/lib/python2.7/dist-packages/setuptools-3.3-py2.7.egg/pkg_resources.py", line 2362, in load_entry_point    raise ImportError("Entry point %r not found" % ((group,name),))ImportError: Entry point ('console_scripts', 'easy_install') not found

出现这个错误是因为在ubuntu中有两个easy_install目录,可以使用which -a easy_install命令查看easy_install在什么地方存放着

我的放在下面两个地方:

/usr/local/bin/easy_install/usr/bin/easy_install

我删除了/usr/local/bin/easy_install这样easy_install就可以正常使用了。

评论关闭