python清华源安装教程
时间: 2023-11-20 20:50:00 浏览: 202
清华源是国内比较稳定的镜像源之一,可以加速Python的安装和更新。以下是Python清华源的安装教程:
1. 打开终端,输入以下命令,备份原有的源列表文件:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 编辑源列表文件,将以下内容复制到文件末尾:
```
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
```
3. 更新源列表:
```
sudo apt-get update
```
4. 安装Python:
```
sudo apt-get install python3
```
阅读全文
相关推荐
















