Centos7 + Python-3.7.4
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel libffi-devel
yum -y install gcc gcc-c++ kernel-devel
./configure --prefix=/usr/local/python3
make && make install
cd /usr/local
tar zcf python3-7-usr-local.tar.gz python3/
原文:https://blog.51cto.com/u_13155846/2737856