20个常用的Python镜像地址(附指定镜像方法)

本文介绍了如何在Python中使用-i参数利用镜像地址加速包的安装,列举了20个常见的Python镜像地址,如阿里云、清华大学等,以适应不同的网络环境和地理位置需求。
摘要由CSDN通过智能技术生成

使用 -i 参数来指定使用镜像地址

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python

Python是一种广泛使用的编程语言,它具有丰富的第三方库和包。在使用Python时,我们经常需要从Python软件包索引(PyPI)中安装各种库和包。然而,有时候由于网络环境的限制或者下载速度较慢,我们可能需要使用镜像地址来加快安装速度。

以下是20个常用的Python镜像地址:

1. 阿里云镜像:https://mirrors.aliyun.com/pypi/simple/
2. 清华大学镜像:https://pypi.tuna.tsinghua.edu.cn/simple
3. 豆瓣镜像:https://pypi.doubanio.com/simple/
4. 中科大镜像:https://pypi.mirrors.ustc.edu.cn/simple/
5. 华为云镜像:https://mirrors.huaweicloud.com/repository/pypi/simple/
6. 腾讯云镜像:https://mirrors.cloud.tencent.com/pypi/simple/
7. 网易镜像:http://mirrors.163.com/pypi/simple/
8. 中国科学技术大学镜像:https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/
9. 北京理工大学镜像:https://pypi.bfsu.edu.cn/simple/
10. 西南大学镜像:https://pypi.swu.edu.cn/simple/
11. 南京大学镜像:https://mirrors.nju.edu.cn/pypi/simple/
12. 山东理工大学镜像:https://pypi.sdutlinux.org/simple/
13. 中国科学院深圳先进技术研究院镜像:https://pypi.sztu.edu.cn/simple/
14. 东北大学镜像:https://pypi.neu.edu.cn/simple/
15. 西北大学镜像:https://mirrors.nwafu.edu.cn/pypi/web/simple/
16. 北京师范大学镜像:https://pypi.bnu.edu.cn/simple/
17. 华中科技大学镜像:https://pypi.hustunique.com/simple/
18. 武汉理工大学镜像:https://pypi.whut.edu.cn/simple/
19. 华南理工大学镜像:https://pypi.sysu.edu.cn/simple/
20. 上海交通大学镜像:https://pypi.sjtug.sjtu.edu.cn/simple/

这些镜像地址提供了稳定的服务,并且通常具有良好的下载速度。根据您的地理位置和网络环境,您可以选择最适合您的镜像地址来加速Python软件包的安装。

  • 8
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值