---
# System prepended metadata

title: 修改ubuntu 22.4 python版本

---

# 修改ubuntu 22.4 python版本

sudo apt update && sudo apt upgrade

sudo apt install software-properties-common

sudo add-apt-repository ppa:deadsnakes/ppa

sudo apt-cache policy python(version)

sudo apt install python3.8

sudo apt install python3.8-distutils
