1.下载 python:
2.编译安装
sudo mkdir /usr/local/python27 sudo ./configure --prefix=/usr/local/python27 sudo make sudo make install
3.升级连接版本
mv /usr/bin/python /usr/bin/python2.6.6 ln -s /usr/local/python27/bin/python /usr/bin/python
4.刷新
source /etc/profile
yum clean all
yum makecache