1.下载安装包:
# wget
2.编译安装
# tar -xzvf Python-2.7.9.tgz # cd Python-2.7.9 # ./configure --prefix=/usr/local/python2.7 # make && make install
3.更新版本
# mv /usr/bin/python /usr/bin/python_old # ln -s /usr/local/python2.7/bin/python /usr/bin/python
本文出自 “HUNT” 博客,请务必保留此出处http://hunt1574.blog.51cto.com/1390776/1630977
原文地址:http://hunt1574.blog.51cto.com/1390776/1630977