python network_error ai_generated true

警告:连接断开后重试(总计=4,连接=None,读取=None,重定向=None,状态=None)...

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object>: Failed to establish a new connection: [Errno 111] Connection refused')': /simple/pkg/

ID: python/pip-index-url-connection-error

其他格式: JSON · Markdown 中文 · English
80%修复率
88%置信度
0证据数
2024-04-15首次发现

版本兼容性

版本状态引入弃用备注
3.6 active
3.7 active
3.8 active
3.9 active

根因分析

包索引服务器不可达,可能是网络问题、防火墙或服务器宕机。

English

The package index server is unreachable due to network issues, firewall, or server down.

generic

解决方案

  1. 80% 成功率
    curl -I https://pypi.org/simple/pkg/
  2. 90% 成功率
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pkg

无效尝试

常见但无效的做法:

  1. 70% 失败

    If the server is down, longer timeouts don't help.

  2. 50% 失败

    May not be configured correctly.