Ubuntu中切换Python版本有多种方式,这里介绍一种
首先查看各个版本的pip和Python的位置:
然后修改bashrc文件,用alias取别名,下面演示的是更换为Python3.6
geidt ~/.bashrc
上面的根据自己的路径更改
然后更新文件
source ~/.bashrc