python - 使用 sphinx 生成文档时如何禁用 ssl 验证?(在代理后面工作)
问题描述
生成文档会给我以下错误:
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 验证?就像 anaconda 一样:conda config --set ssl_verify false
?
解决方案
推荐阅读
- c++ - 如何在不复制的情况下将过滤向量的结果存储在另一个向量中
- fetch - Nativescript Vue 简单示例 create()mounted() 永远不会触发
- django - 来自不同模型的多个查询集的分页
- android - 如何增加recyclerview中每一行的edittext的值?
- json - 准备使用标识符 JSON 进行 segue
- sql - 如何在 PostgreSQL 中创建一个单词/字符串的所有可能字谜的列表
- node.js - Mongoose聚合,当产品匹配时找到产品的祖先
- r - 如何提取和删除字符串?所以我可以让相似的表达式匹配 1 次而不是多次
- swift - 矩阵排序和转置swift4
- typescript - 根据类中替换的扩展方法更改返回值