命令行輸入python3 -V,發現是python3.5的。
然后我們逐條輸入以安裝python3.6
apt-get install software-properties-common
add-apt-repository ppa:jonathonf/python-3.6
apt-get update
apt-get install python3.6
過程中要輸入yes的,就輸入Y。
然后再次命令行輸入python3 -V
發現還是python3.5的。
輸入which python3查看快捷鍵的路徑。
然后cd /usr/bin/進到該目錄。
rm python3
刪除快捷鍵。
創建軟鏈接
ln -s python3.6 python3
再次python3 -V,得到我們想要的結果。