2025-09-09 04:46PM
1. 先检查当前版本
$ python --version
Python 2.7.18
$ python3 --version
Python 3.10.12
2. 使用 update-alternatives 更新 python 命令
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
3. 再次检查 python 版本
$ python --version
Python 3.10.12
这样就可以啦~
登录
请登录后再发表评论。
评论列表:
目前还没有人发表评论