1、先安装相关的库
yum install libffi-devel -y
2、下载并解压Python3.7
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0b2.tgz
tar -zxvf Python-3.7.0b2.tgz
3、编译安装
cd Python-3.7.0b2 ./configure make && make install
1、先安装相关的库
yum install libffi-devel -y
2、下载并解压Python3.7
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0b2.tgz
tar -zxvf Python-3.7.0b2.tgz
3、编译安装
cd Python-3.7.0b2 ./configure make && make install
转载于:https://www.cnblogs.com/fjzsl/p/8505079.html