当前位置 : 主页 > 编程语言 > python >

There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org‘, port=443

来源:互联网 收集:自由互联 发布时间:2022-08-15
在安装pytest-html是报错了: Could not fetch URL https : / / pypi . org / simple / pytest - html / : There was a problem confirming the ssl certificate : HTTPSConnectionPool ( host = 'pypi.org' , port = 443 ): Max retries exceeded wi


在安装pytest-html是报错了:

Could not fetch URL https://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

There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org‘, port=443)_pycharm

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

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

There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org‘, port=443)_html_02

 

 

网友评论