ImportError:找不到入口点('console_scripts','easy_install')

Har*_*rry 5 python shell easy-install python-2.7

我正在尝试安装一个软件包,其中一条说明如下,但是我收到了一个错误.

easy_install -U distribute pip
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/easy_install", line 9, in <module>
    load_entry_point('distribute', 'console_scripts', 'easy_install')()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-3.4.1-py2.7.egg/pkg_resources.py", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-3.4.1-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
make: *** [install] Error 1
Run Code Online (Sandbox Code Playgroud)

看看其他类似的问题,我仍然没有想出解决方案,但它似乎是一些Python版本或安装冲突?

use*_*451 5

问题可能是多个已安装的版本,源于通过aptitude和pip/easy_install安装.这对我有所帮助:

pip uninstall <package>
sudo pip uninstall <package>
sudo aptitude remove <package>
Run Code Online (Sandbox Code Playgroud)

然后重新安装......