centos 6.x Python2.7x安装
yum install -y gcc gcc-devel
wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz
tar xf Python-2.7.14.tgz
cd /root/Python-2.7.14
./configure
make && make install
mv /usr/bin/python python2.6.6
ln -s /usr/local/bin/python /usr/bin/python
vim /usr/bin/yum 修改为#!/usr/bin/python2.6
若安装setuptools时报zlib没有错误
需进入cd python2.7.14安装目录下重新make make install