Ubuntu 22.04 使用APT安装Python3.8

这是众多安装Python方法中非常简单的一种,但是由于添加的ppa源在国外,所以这个方法的最大问题就是下载速度非常慢,很容易失败

1. 安装准备包

sudo apt install software-properties-common -y

2. 添加apt ppa源:deadsnakes

sudo add-apt-repository ppa:deadsnakes/ppa

3. 更新apt

sudo apt update

4. 安装Python3.8

sudo apt install python3.8

5. 检查安装是否成功

python3.8 --version

返回版本即成功

文章作者:四文鱼Max

本文链接:https://blog.awolon.fun/archives/ubuntu-apt-python3-8.html

许可协议:CC BY-SA 4.0

标签: python, ubuntu, apt

添加新评论