# yum -y groupinstall "Development tools"
yum -y install gcc zlib-devel libffi-devel openssl-devel readline-devel
wget https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz
tar -xvf Python-3.8.10.tgz
cd Python-3.8.10
./configure --prefix=/usr/local/python3.8 --enable-optimizations --with-lto
make && make install
ln -s /usr/local/python3.8/bin/python3 /usr/local/bin/python
ln -s /usr/local/python3.8/bin/pip3 /usr/local/bin/pip
CentOS7 Python
于 2022-07-03 21:10:57 首次发布