然后重新编译源码
cd /root/tools
wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz
tar -zxvf Python-3.9.1.tgz
yum -y install zlib* {这个不安装,编译可能会报错}
yum install libffi-devel -y
cd /root/tools/Python-3.9.1
./configure --prefix=/usr/local/python39
make && make install
ln -s /usr/local/python39/bin/python3.9 /usr/bin/python3