|
1 2 3 4 5 6 7 8 |
|
Python 3 默认
|
1 2 3 |
|
Python 2 默认
|
1 2 3 |
|
另外一种方案
update-alternatives --install /usr/bin/python python /usr/bin/python2 100
update-alternatives --install /usr/bin/python python /usr/bin/python3 150

这篇博客介绍了如何在Linux环境中切换和设置默认的Python版本,包括使用`alternatives`命令来选择Python2或Python3作为默认解释器,并展示了更新系统默认Python版本的详细步骤。
|
1 2 3 4 5 6 7 8 |
|
|
1 2 3 |
|
|
1 2 3 |
|
另外一种方案
update-alternatives --install /usr/bin/python python /usr/bin/python2 100
update-alternatives --install /usr/bin/python python /usr/bin/python3 150

1078
1159

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