1、查看当前python版本
$ python -V
$ python 2.6.6
2、安装Python-2.7.12
$ wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz
$ tar zxvf Python-2.7.12.tgz
$ cd Python-2.7.12
$ ./configure
$ sudo make all
$ sudo make install
$ sudo make clean
$ sudo make disclean
3、查看版本信息
$ /usr/local/bin/python2.7 -V
4、验证一下