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

转载于:https://www.cnblogs.com/zangyu/p/5574513.html

你可能感兴趣的:(ubuntu下卸载python2和升级python3.5)