pkg_resources.DistributionNotFound: setuptools==1.1.6


问题:

[root@crawl-0 ~]#easy_install 

Traceback (most recent call last):

  File "/opt/Python-2.7/bin/easy_install", line 5, in <module>

    from pkg_resources import load_entry_point

  File "/opt/Python-2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2607, in <module>

    

  File "/opt/Python-2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve

    while requirements:

pkg_resources.DistributionNotFound: setuptools==1.1.6

解决:

pip install -U distribute


   distribute是setuptools的替代方案,pip是easy_install的替代方案

Distribute提供一个安装python模块的框架。系统的每一个python解释器都需要它自己的Distribute。你可以自己找到最新版本的Distribute,在这里https://pypi.python.org/pypi/distribute。

Distribute是对标准库disutils模块的增强,我们知道disutils主要是用来更加容易的打包和分发包,特别是对其他的包有依赖的包。

Distribute被创建是因为Setuptools包不再维护了。


你可能感兴趣的:(resources,pkg)