python -V
Python 2.6.6
//下载软件包
wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
//解压软件包
tar xvf Python-2.7.6.tgz
//进入解压目录
cd Python-2.7.6
//安装
./configure --prefix=/usr/local/
make && make install
//查看安装完成的版本
/usr/local/bin/python2.7 -V
//创建快捷启动命令
cp /usr/local/bin/python2.7 /usr/bin/python2.7
mv /usr/bin/python /usr/bin/python2.6.6
ln -s /usr/local/bin/python2.7 /usr/bin/python
//查看版本
python -V
//下载和安装bootstrap工具包和pip工具包