centos7安装python3.9
#cd /usr/local #yum -y groupinstall "Development tools" #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 #yum install libffi-devel -y #wget https://www.python.org/ftp/python/3.9.8/Python-3.9.8.tgz #mkdir python3 #tar -xvzf Python-3.9.8.tgz #cd Python-3.9.8 #./configure --prefix=/usr/local/python3 #make && make install #ln -s /usr/local/python3/bin/python3 /usr/bin/python3 # ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3 #python3 -V Python 3.9.8 #pip3 -V pip 21.2.4 from /usr/local/python3/lib/python3.9/site-packages/pip (python 3.9)