ubuntu下卸载python2和升级python3.5

卸载python只需一条语句就可以实现

sudu apt-get remove python

ubuntu下安装python3

sudo apt-get install python3

但这样只安装了python3.4

要想使用python3.5,则必须升级python3.4

 

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.5

使用以上三行命令便可升级python3.4到python3.5

启动时要输入python3.5

 

输入python时启动的是python2.7

输入python3时启动的是python3.4

输入python3.5时启动的才是python3.5

    原文作者:vv鱼儿vv
    原文地址: https://www.cnblogs.com/zangyu/p/5574513.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞