基本环境安装
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
1. 下载到本地并解压
wget https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tgz
tar -zvxf Python-3.7.12.tgz
cd Python-3.7.12
2. 编译安装
./configure --prefix=/usr/local/python3
make && make install
3. 查看是否安装完成
python3 --version
标签:12,Python,make,devel,3.7,linux,安装
From: https://www.cnblogs.com/xgg123/p/17157283.html