unbuntu下有多个python版本共存,可以设计python的优先级:
1.打开优先级列表
sudo update-alternatives --config python
2.输入优先级对应的数字
Press <enter> to keep the current choice[*], or type selection number: 1
结果图:
3.最后可以再输入sudo update-alternatives --config python
查看优先级是否已经改变