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

ubuntu Python3.6 升级 Python3.8

Mr J 39990 0
  1. sudo apt install python3.8
  2.  
  3. $ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
  4. $ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
  5.  
  6.  
  7. $ sudo update-alternatives --config python3
  8.  
  9.  
  10. user@ubuntu1804:~$ sudo update-alternatives --config python3
  11. There are 2 choices for the alternative python3 (providing /usr/bin/python3).
  12.  
  13. Selection Path Priority Status
  14. ------------------------------------------------------------
  15. * 0 /usr/bin/python3.6 1 auto mode
  16. 1 /usr/bin/python3.6 1 manual mode
  17. 2 /usr/bin/python3.8 2 manual mode
  18.  
  19. Press <enter> to keep the current choice[*], or type selection number:
复制 文本 高亮

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

分享
微信
微博
QQ