栏目分类:
子分类:
返回
终身学习网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
终身学习网 > IT > 软件开发 > 后端开发 > Python

pip安装包时出现 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))

Python 更新时间:发布时间: 百科书网 趣学号

遇到如上错误提示的时候是安装httprunner时候,
输入指令pip install httprunner,等待后提示如下报错:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(, 'Connect…


网上查找相关解决办法,其中一条亲测有效:
输入指令:pip install httprunner -i http://pypi.douban.com/simple --trusted-host pypi.douban.com


原因为:
pip的时候各种关卡限制了网速,链接超时,需要自己设定安装源


解决办法:
在 pip命令后自己设定收集源(-i +url),例如使用豆瓣源,就可以正常安装了


ps:国内的一些其他的源:

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

转载请注明:文章转载自 www.051e.com
本文地址:http://www.051e.com/it/461523.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 ©2023-2025 051e.com

ICP备案号:京ICP备12030808号