下载
我下载的是2.7.15地址如下
https://www.python.org/downloads/release/python-2715/
下载好以后解压
tar xvf Python-2.7.15.tgz
cd Python-2.7.15
./configure --prefix=/usr/local/python2.7.15 --enable-shared
make && make install
ln -s /usr/local/python2.7.15/bin/python2.7 /usr/bin/