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查看优先级是否已经改变

本文介绍如何在Ubuntu系统中管理多个Python版本,并设置不同版本之间的优先级。通过使用命令`sudo update-alternatives --config python`,用户可以轻松地配置默认Python解释器,确保开发环境的灵活性。
318

被折叠的 条评论
为什么被折叠?



