Ubuntu 14.04安装Python3
1、添加源
sudo add-apt-repository ppa:fkrull/deadsnakes
2、更新 & 安装
sudo apt-get update sudo apt-get install python3.5 python3.5-dev
3、修改软链接
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
sudo cp /usr/bin/python /usr/bin/python_bak //先备份 sudo rm /usr/bin/python //删除 sudo ln -s /usr/bin/python3.5 /usr/bin/python //设置软链接