How to resolve SSL certificate issue with HTTPSConnectionPool to pypi.org?

2026-05-16 14:471阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计255个文字,预计阅读时间需要2分钟。

How to resolve SSL certificate issue with HTTPSConnectionPool to pypi.org?

在安装pytest-时遇到错误:无法获取URL https://pypi.org/simple/pytest-/:确认SSL证书时出现问题:HTTPSConnectionPool(host='pypi.org', port=443):超过最大重试次数。


在安装pytest-html是报错了:

Could not fetch URL pypi.org/simple/pytest-html/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded
with url: /simple/pytest-html/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))) - skipping
ERROR: Could not find a version that satisfies the requirement pytest-html (from versions: none)
ERROR: No matching distribution found for pytest-html
WARNING: You are using pip version 21.3.1; however, version 22.0.4 is available.
You should consider upgrading via the 'C:\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.

确认SSL证书时出现问题,我开始选择网上的办法,选择信任该网站再下载:

pip install --trusted-host pypi.org pytest-html

还是不行,提示“Cannot connect to proxy.”无法连接到代理。

我想了想,emm傻逼了,忘记我开了全局的代理。关掉就可以了

How to resolve SSL certificate issue with HTTPSConnectionPool to pypi.org?

本文共计255个文字,预计阅读时间需要2分钟。

How to resolve SSL certificate issue with HTTPSConnectionPool to pypi.org?

在安装pytest-时遇到错误:无法获取URL https://pypi.org/simple/pytest-/:确认SSL证书时出现问题:HTTPSConnectionPool(host='pypi.org', port=443):超过最大重试次数。


在安装pytest-html是报错了:

Could not fetch URL pypi.org/simple/pytest-html/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded
with url: /simple/pytest-html/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))) - skipping
ERROR: Could not find a version that satisfies the requirement pytest-html (from versions: none)
ERROR: No matching distribution found for pytest-html
WARNING: You are using pip version 21.3.1; however, version 22.0.4 is available.
You should consider upgrading via the 'C:\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.

确认SSL证书时出现问题,我开始选择网上的办法,选择信任该网站再下载:

pip install --trusted-host pypi.org pytest-html

还是不行,提示“Cannot connect to proxy.”无法连接到代理。

我想了想,emm傻逼了,忘记我开了全局的代理。关掉就可以了

How to resolve SSL certificate issue with HTTPSConnectionPool to pypi.org?