怎么解决Python 安装包时出现:Retrying (Retry(total=4, connect=None, read=

参考:https://blog.csdn.net/candice5566/article/details/82633680

向大神致敬!!!!

原因是连接超时,所以需要自己设定安装源,

解决方法:

在 pip命令后自己设定收集源(-i +url)

eg:pip install requests -i http://pypi.douban.com/simple --trusted-host pypi.douban.com(通过豆瓣)
 

猜你喜欢

转载自blog.csdn.net/qq_42006303/article/details/88138544