- 下载python 源码:
https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
可以从国内镜像下快一点
http://mirrors.sohu.com/python/3.6.3/
- 安装python
tar - xzvf Python-3.6.3.tgz
cd Python-3.6.3
./configure
make
make install
-修改python优先级
ubuntu16.04默认是python3.5 将python指定为python3.6
sudo update-alternatives --install /