错误显示: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: 解决方案: 在你的 Python 代码的开头加上如下代码 import os os.environ['HTTP_PROXY'] = 'http://proxy_ip_address:port' os.environ['HTTPS_PROXY'] = 'http://proxy_ip_address:port' 其中 http://proxy_ip_address:port 中的 proxy_ip_address 和 port为开启梯子后 (windows)设置>网络和Internet>代理>手动设置代理>编辑代理服务器 例如在我的情况下就是 import os os.environ['HTTP_PROXY'] = 'http://127.0.0.1:7890' os.environ['HTTPS_PROXY'] = 'http://127.0.0.1:7890'
requests.exceptions.SSLError:(MaxRetryError(“HTTPSConnectionPool(host=‘huggingface.co‘, port=443)
最新推荐文章于 2024-07-27 17:39:19 发布