CentOS 6.4 安装RBTools 报错 ImportError: Entry point ('console_scripts', 'easy_install') not found

本来是按照官网步骤安装的

1 sudo yum install python

2 sudo yum install python-setuptools

3 sudo easy_install -U setuptools

4 sudo easy_install -U RBTools

 

可惜报错了

Traceback (most recent call last):

  File "/usr/bin/easy_install", line 9, in <module>

    load_entry_point('distribute', 'console_scripts', 'easy_install')()

  File "/usr/lib/python2.6/site-packages/setuptools-3.4.3-py2.6.egg/pkg_resources.py", line 351, in load_entry_point

    return get_distribution(dist).load_entry_point(group, name)

  File "/usr/lib/python2.6/site-packages/setuptools-3.4.3-py2.6.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

 

去stackoverflow找了下原因

1.Check your /usr/bin and /usr/local/bin for easy_install installations and remove any old script:

1 sudo rm /usr/bin/easy_install*

2 sudo rm /usr/local/bin/easy_install*

2.Download and run distribute:

1 curl -O http://python-distribute.org/distribute_setup.py

2 sudo python distribute_setup.py

3 sudo rm distribute_setup.py

3.Try again

sudo easy_install RBTools

有的人问题解决了,

但是我依然可耻的失败了.一样是python和easy_install版本不兼容的问题.

 

随后我决定破罐子破摔:

1.下载epel源 http://ftp.sjtu.edu.cn/fedora/epel/6/i386/repoview/epel-release.html

2.下载remi源 http://rpms.famillecollet.com/

rpm安装这两个源

之后

sudo yum install RBTools --enablerepo=remi

 

参考资料:http://stackoverflow.com/questions/6012246/why-is-python-easy-install-not-working-on-my-mac

 

你可能感兴趣的:(easy_install)