20个常用的Python镜像地址-指定使用镜像地址

您可以使用 `-i` 参数来指定使用镜像地址。

例如,要使用阿里云的镜像地址,可以执行以下命令:

pip install -i https://mirrors.aliyun.com/pypi/simple/ opencv-python

同样地,要使用清华大学的镜像地址,可以执行以下命令:

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

这将会将 `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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值