CentOS 6.4 安装RBTools 报错 ImportError: Entry point......(转)

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

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

1
2
3
4
sudo  yum  install  python
sudo  yum  install  python-setuptools
sudo  easy_install -U setuptools
sudo  easy_install -U RBTools

可惜报错了

1
2
3
4
5
6
7
8
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
2
sudo  rm  /usr/bin/easy_install *
sudo  rm  /usr/local/bin/easy_install *

2.Download and run distribute:

1
2
3
curl -O http: //python-distribute .org /distribute_setup .py
sudo  python distribute_setup.py
sudo  rm  distribute_setup.py

3.Try again, and enjoy

1
sudo  easy_install RBTools

 

随后

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

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

rpm安装这两个源

之后

1
sudo  yum  install  RBTools --enablerepo=remi

 

参考资料:

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

猜你喜欢

转载自xialluyouyue.iteye.com/blog/2043939