如何在使用sphinx生成文档时禁用ssl验证?(在代理人后面工作)

2024-03-29 05:58:54 发布

您现在位置:Python中文网/ 问答频道 /正文

生成文档时出现以下错误:

loading intersphinx inventory from https://docs.python.org/3/objects.inv...
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://docs.python.org/3/objects.inv' not fetchable due to <class 'requests.exceptions.SSLError'>: HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded with url: /3/objects.inv (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

我在公司代理人后面工作。你知道吗

有没有办法禁用ssl验证?就像水蟒对:conda config --set ssl_verify false做的那样?你知道吗


Tags: thetohttpsorgssldocsobjectswith