查询当前默认python路径
which python
/usr/bin/python
查询你要修改的python3.7路径
which python3.7
/usr/bin/python3.7
删除之前默认的python路径
sudo rm /usr/bin/python
当前如果你再执行python
bash: /usr/bin/python: No such file or directory
添加默认的路径
ln -s /usr/bin/python3.7 /usr/bin/python
之后你再运行python,就是python3.7了
python --version
python 3.7.5