直接安裝easy_install不行,據說python-setuptools這個工具已經自帶easy install這個了,因此直接下載setuptools就好了。 java
[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: python
[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')
找不到文件,說明沒有找到這個東西,安裝失敗。 json