yum -y install wget gcc gcc-c++ gcc-g77
wget http://mirrors.sohu.com/python/2.7.9/Python-2.7.9.tgz
tar xzvf Python-2.7.9.tqz
mkdir -p /usr/local/python27
cd Python-2.7.9
./configure --prefix=/usr/local/python27 && make && make install
mv /usr/bin/python /usr/bin/python_old
ln -s /usr/local/python27/bin/python /usr/bin/
暂时还有点问题,先记录下,开过会验证
原文地址:http://jwnlive.blog.51cto.com/8322562/1632097