首先到官网下载python2.7.3版本,编译安装
$wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz $tar zxvf Python-2.7.3.tgz $cd Python-2.7.3 $./configure $make && make install
$mv /usr/bin/python /usr/bin/python.bak $ln -s /usr/local/bin/python2.7 /usr/bin/python $python -V
$vim vim /usr/bin/yum
安装easy_install
$yum install python-setuptools
$ easy_install rsa Traceback (most recent call last): File "/usr/bin/easy_install", line 5, in <module> from pkg_resources import load_entry_point ImportError: No module named pkg_resources
$wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c5.tar.gz $tar zxvf setuptools-0.6c5.tar.gz $cd setuptools-0.6c5 $python setup.py install