ubuntu系统怎么查看默认python版本和设置默认版本

1、查看是否配置默认版本

sudo update-alternatives --list python

2、配置默认python版本

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1

sudo.............................................................................................python2 2

可以只设置一个

posted @ 2022-03-17 15:37  Cody_map  阅读(629)  评论(0编辑  收藏  举报