Linux本身自己带有python,但由于版本太低所以考虑换一个稍微高一点版本的Python(2.7.14)
1、下载
Linux下载地址:https://www.python.org/downloads/release/python-2714/
2、解压
1 tar -zxvf Python-2.7.14.tgz
3、使用yum安装依赖
yum install -y zlibyum install -y zlib-develyum install -y opensslyum install -y openssl-develyum install -y bzip2-develyum install -y sqlite-develyum groupinstall 'Development Tools'
4、编译和安装
依次执行下面的语句:
./configure --enable-optimizationsmakemake install