yum -y install gcc gcc-c++ zlib-devel bzip2-devel openssl-devel sqlite-devel readline-devel libffi-devel
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel[/code
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
tar xf Python-3.7.3.tgz
cd Modules/
vim Setup.dist
168行去掉注释
去掉212-214注释
返回上一级目录
./configure
make -j 2 && make install
cd /usr/local/
mkdir ~/.pip
[global]
index-url=https://pypi.douban.com/simple