apt-get update
apt-get install python3-distutils
apt-get install python 3.7.3
安装pip:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
更改默认python
python -V #查看当前默认版本
echo "alias python='/usr/local/bin/python3'" >> ~/.bashrc #刚刚编译安装目录
source ~/.bashrc
python -V #确认是否已切换成功