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')

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


转载于:https://my.oschina.net/hanzhankang/blog/201440

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值