python清华镜像源地址
时间: 2023-11-27 10:44:06 浏览: 210
清华镜像源的地址是:https://pypi.tuna.tsinghua.edu.cn/simple/
如果你想使用清华镜像源,可以在 pip 安装时加上参数 -i https://pypi.tuna.tsinghua.edu.cn/simple/,例如:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ numpy
相关问题
python清华镜像源
清华大学开源软件镜像站提供了Python的镜像源,可以通过以下步骤配置:
1. 打开终端,进入/etc/apt/目录下,备份原来的sources.list文件
```
cd /etc/apt/
sudo cp sources.list sources.list.bak
```
2. 编辑sources.list文件,添加清华Python镜像源
```
sudo vim sources.list
```
在文件末尾添加以下内容:
```
# 清华Python镜像源
deb https://mirrors.tuna.tsinghua.edu.cn/python/ 宝塔版本 main
deb-src https://mirrors.tuna.tsinghua.edu.cn/python/ 宝塔版本 main
```
注意:将“宝塔版本”替换为你所使用的Ubuntu版本,例如Ubuntu 20.04对应的宝塔版本为focal。
3. 更新源并安装Python
```
sudo apt update
sudo apt install python3
```
现在你就可以使用清华Python镜像源来安装Python了。
python清华镜像源下载
清华镜像源是一个用于下载Python包和科学库的镜像服务器。你可以使用以下指令来从清华镜像源下载Python包:
pip install 包名 -i https://pypi.tuna.tsinghua.edu.cn/simple
请注意,你需要将“包名”替换为你想要下载的具体包的名称。同时,***
阅读全文
相关推荐
















