视情况更换国内源
更新
apt-get update
安装依赖包
apt-get install software-properties-common
下载 python3.8
apt-get update apt-get install python3.8
建立软链接
先删除旧的 python 链接
删除后建立新的链接关系
sudo rm -rf /usr/bin/python sudo ln -s /usr/bin/python3.8 /usr/bin/python sudo rm -rf /usr/bin/python3 sudo ln -s /usr/bin/python3.8 /usr/bin/python3
重新下载 pip
cd /usr/lib/python3.8 wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate python get-pip.py