首页 > 其他分享 >pip install 安装第三方库时提示 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, stat

pip install 安装第三方库时提示 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, stat

时间:2022-09-24 15:34:45浏览次数:46  
标签:redirect status None simple pypi WARNING arguments

当尝试在cmd中用pip命令安装第三方库时,出现如下的WARNING

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/arguments/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/arguments/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/arguments/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/arguments/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /simple/arguments/
Could not fetch URL https://pypi.org/simple/arguments/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/arguments/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))) - skipping
ERROR: Could not find a version that satisfies the requirement arguments (from versions: none)
ERROR: No matching distribution found for arguments

检查错误信息是网络的原因,通过镜像网站安装仍然失败

当关闭代理后一切恢复正常

当然出现这样的问题也可以尝试更换pip源

pip install 包名 -i http://pypi.douban.com/simple

其他的源

阿里云 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/

 

标签:redirect,status,None,simple,pypi,WARNING,arguments
From: https://www.cnblogs.com/xinmind/p/16725722.html

相关文章