Ubuntu 14安装Python 3.6

安装python3.6

sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6

如果提示没有add-apt-repository

sudo apt-get install software-properties-common

用python3.6替换python2.7

sudo rm /usr/bin/python
sudo ln -s /usr/local/bin/python3.6 /usr/bin/python

python –version

Published by

@XiaoKyun

双鱼男,过分热心的好人。