#python -V
Python 2.6.6
1.下载Python-2.7.3
#wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
2.解压
#tar -jxvf Python-2.7.3.tar.bz2
3.更改工作目录
#cd Python-2.7.3
4.安装
#./configure
#make all
#make install
#make clean
#make distclean
5.查看版本信息
#/usr/local/bin/python2.7 -V
python -v