ubuntu Python3.6 升级 Python3.8 | 一见知得 | Mr J Blog

ubuntu Python3.6 升级 Python3.8

Mr J 35764 0
sudo apt install python3.8

$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2


$ sudo update-alternatives --config python3


user@ubuntu1804:~$ sudo update-alternatives --config python3
There are 2 choices for the alternative python3 (providing /usr/bin/python3).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /usr/bin/python3.6   1         auto mode
  1            /usr/bin/python3.6   1         manual mode
  2            /usr/bin/python3.8   2         manual mode

Press <enter> to keep the current choice[*], or type selection number:

发表评论
表情 图片 链接 代码

分享
微信
微博
QQ