pip 使用镜像下载第三方包
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple 包名
例如: pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas
国内源:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/

本文介绍了如何通过配置pip的镜像源来加速第三方包的下载。在Windows和Linux上分别提供了更新pip源的步骤,包括创建pip配置文件并设置国内镜像,如清华、阿里云等,以提高下载速度。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



