文章目录
- 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:852)'),)': /simple/modelscope/ Could not fetch URL https://pypi.org/simple/modelscope/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/modelscope/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:852)'),)) – skipping. 总以为是用了镜像源的原因,删除了使用的镜像源,还是没能解决,甚至临时禁用 SSL 验证也没有解决。
- 突然意识到自己挂了梯子,开了代理,于是我把它关了再重新安装,成功了!!! 本人花了这么多时间解决这个问题,没想到就只是因为开了代理,其实之前也遇到过这个问题,也知道开代理会影响安装包,但总是在出现类似问题时,无法第一时间想起关闭代理!!!
目录
- python安装包出现SSL证书验证失败
- 报如下错误
- 解决过程
- 总结
本人在安装modelscope包时一直安装失败
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:852)'),)': /simple/modelscope/ Could not fetch URL https://pypi.org/simple/modelscope/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/modelscope/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:852)'),)) – skipping.
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:852)'),)': /simple/modelscope/ Could not fetch URL https://pypi.org/simple/modelscope/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/modelscope/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:852)'),)) – skipping.
总以为是用了镜像源的原因,删除了使用的镜像源,还是没能解决,甚至临时禁用 SSL 验证也没有解决。
突然意识到自己挂了梯子,开了代理,于是我把它关了再重新安装,成功了!!!
本人花了这么多时间解决这个问题,没想到就只是因为开了代理,其实之前也遇到过这个问题,也知道开代理会影响安装包,但总是在出现类似问题时,无法第一时间想起关闭代理!!!
以上为个人经验,希望能给大家一个参考,也希望大家多多支持风君子博客。
您可能感兴趣的文章:
- Python安装包报错4.0.0-unsupported解决办法
- python安装包site-packages的方法步骤
- Python Conda安装包报错:PackagesNotFoundError两种解决方法
- Python查看已安装包的版本号的多种方法
- python命令行安装包详解
- Python中如何处理HTTPS请求和SSL证书验证详解
- Python如何获取域名的SSL证书信息和到期时间
- 使用python脚本检查ssl证书到期时间
- Python自动检测SSL证书是否过期的实现示例