安裝:python
sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt-get update sudo apt-get install python3.6
配置只輸入python3時就默認使用3.6版本:spa
也可以使用上面連接裏說明的方法blog
一、update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1ip
二、update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2get
三、update-alternatives --config python3it
四、python3 -Vpip
設置pip:class
一、apt-get install python3-pip # Python3配置
二、apt-get install python-pip # Python2date