安装 python
wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar jxvf Python-2.7.2.tar.bz2
cd Python-2.7.2
mkdir /usr/local/python27
./configure --prefix=/usr/local/python27--with-zlib
make && make install
解决旧版兼容问题
mv /usr/bin/python /usr/bin/python_old
ln -s /usr/local/python27/bin/python /usr/bin/
解决yum的问题
vim /usr/bin/yum
#!/usr/bin/python ==》 #!/usr/bin/python_old
python -V
本文出自 “XFICC” 博客,请务必保留此出处http://xficc.blog.51cto.com/1189288/1551001
原文地址:http://xficc.blog.51cto.com/1189288/1551001