ubuntu18.04 apt 安装python3.8

  1. Run the following commands as root or user with sudo access to update the packages list and install the prerequisites:

    sudo apt update
    sudo apt install software-properties-common
    
  2. Add the deadsnakes PPA to your system’s sources list:

    sudo add-apt-repository ppa:deadsnakes/ppa

    When prompted press Enter to continue:

    Press [ENTER] to continue or Ctrl-c to cancel adding it.
  3. Once the repository is enabled, install Python 3.8 with:

    sudo apt install python3.8
  4. Verify that the installation was successful by typing:

    python3.8 --version
    Python 3.8.0

    At this point, Python 3.8 is installed on your Ubuntu system, and you can start using it

 

https://linuxize.com/post/how-to-install-python-3-8-on-ubuntu-18-04/

 

posted on   lydstory  阅读(234)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2020-08-22 Linux网络编程socket选项之SO_LINGER,SO_REUSEADDR
2020-08-22 strtoul 16进制转换为cha字符

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示