pythonssl错误proxy错误解决思路
简书链接:pythonssl错误proxy错误解决思路
文章字数:92,阅读全文大约需要1分钟
requests.exceptions.SSLError: HTTPSConnectionPool(host=’explorer.api.openai.com’, port=443): Max retries exceeded with url: /api/auth/csrf (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:997)’)))
pip install --upgrade requests
1 | requests.packages.urllib3.disable_warnings() |
1 | import requests |
Cannot connect to proxy.’问题
1 | import requests |
(Caused by ProxyError(‘Cannot connect to proxy.’, FileNotFoundError(2, ‘No such file or directory’))
降级版本pip install urllib3==1.25.11
h
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 情迁博客!
评论