ubuntu16.04升级python3.5到3.6

在命令行中输入如下:

apt-get install software-properties-common
add-apt-repository ppa:jonathonf/python-3.6
apt-get update
apt-get install python3.6
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
update-alternatives --config python3

安装pip3

curl https://bootstrap.pypa.io/get-pip.py | python3.6

 

你可能感兴趣的:(踩坑经验)