常见的镜像源下载:
清华:https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/
华中科技大学:http://pypi.hustunique.com/simple/
上海交通大学:https://mirror.sjtu.edu.cn/pypi/web/simple/
豆瓣:http://pypi.douban.com/simple/
使用方法:
pip install <安装包> -i <镜像源>
以下载pandas库为例子:
pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple/
本文介绍了如何在Python中利用pip从多个镜像源如清华、阿里云等下载安装包,如pandas,通过`pipinstall<包名>-i<镜像源>`命令进行操作。
2276

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



