wget https://www.python.org/ftp/python/3.8.8/Python-3.8.8.tgztar zxvf Python-3.8.8.tgz
进入刚刚解压后的目录
./configure --prefix=/data/soft/python3
按照上面截图所属,需要安装gcc
安装报错需要安装
sudo yum install zlib1g-dev
make -j4
make install -j4
更换旧的python软连
unlink python
rm -rf /usr/bin/python
ln -s /data/soft/python3/bin/python3.8 /usr/bin/python
ln -s /data/soft/python3/bin/pip3.8 /usr/bin/pip
python -v