python2.6 升级到2.7

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.tgz

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/


vi /usr/bin/yum

#!/usr/bin/python 修改为2.6的地址

验证正常。2015 11 16

你可能感兴趣的:(python,local,记录)