ubuntu默认使用python2,更改默认使用python3

服务器   发布日期:2小时前   浏览次数:64

直接执行这两个命令即可:


sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100


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

以上就是ubuntu默认使用python2,更改默认使用python3的详细内容,更多关于ubuntu默认使用python2,更改默认使用python3的资料请关注九品源码其它相关文章!