Files
Knowledge/其他/Ubuntu 安装 python.md
T

12 lines
356 B
Markdown

```powershell
sudo apt-get update
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install -y python3.10
sudo apt-get install -y python3.10-dev
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
sudo apt-get install -y python3.10-distutils
sudo ln -sf /usr/bin/python3.10 /usr/bin/python3
```