CentOS安装python的easy_install

直接安装easy_install不行,听说python-setuptools这个工具已经自带easy install这个了,所以直接下载setuptools就行了。

[root@localhost yum.repos.d]# yum -y install python-setuptools
结果:
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch          Version               Repository   Size
================================================================================
Installing:
 python-setuptools        noarch        0.6.10-3.el6          base        336 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 336 k
Installed size: 1.5 M
Downloading Packages:
python-setuptools-0.6.10-3.el6.noarch.rpm                | 336 kB     00:04     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : python-setuptools-0.6.10-3.el6.noarch                        1/1 
  Verifying  : python-setuptools-0.6.10-3.el6.noarch                        1/1 

Installed:
  python-setuptools.noarch 0:0.6.10-3.el6                                       

Complete!

再用easy_install命令安装 simplejson:

[root@localhost yum.repos.d]# easy_install simplejson
Searching for simplejson
Reading http://pypi.python.org/simple/simplejson/
Download error: [Errno 111] Connection refused -- Some packages may not be found!
Reading http://pypi.python.org/simple/simplejson/
Download error: [Errno 111] Connection refused -- Some packages may not be found!
Couldn't find index page for 'simplejson' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: [Errno 111] Connection refused -- Some packages may not be found!
No local packages or download links found for simplejson
error: Could not find suitable distribution for Requirement.parse('simplejson')

找不到文件,说明没有找到这个东西,安装失败。


你可能感兴趣的:(CentOS安装python的easy_install)