Ubuntu里设置python默认版本为python3(转载)

0 - 步骤

  在命令行中执行下述命令:

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

1 - 参考资料

https://blog.csdn.net/fxjzzyo/article/details/80216084

posted @ 2018-11-05 21:16  CZiFan  阅读(2855)  评论(0编辑  收藏  举报