下载载python3.7
apt-get update
apt-get install python3.7
建立软链接
先删除旧的python连接。
删除后建立新的连接关系,例如linux下python3默认在/usr/bin/下
rm -rf /usr/bin/python
ln -s /usr/bin/python3.7 /usr/bin/python
进入python3.7的lib中:
cd /usr/lib/python3.7
wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
python get-pip.py