解决方案
输入指令:
pip --default-timeout=100 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
当然还有其他镜像服务网站
清华: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的默认超时时间和使用国内的PyPI镜像服务,如豆瓣、清华大学、阿里云等,来加速Python库的安装过程,提升效率。

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



