{
  "id": "python/pip-connection-timeout-pypi",
  "signature": "WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError(\"HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)\")'",
  "signature_zh": "警告：重试（Retry(total=4, connect=None, read=None, redirect=None, status=None)），因为连接中断：'ReadTimeoutError(\"HTTPSConnectionPool(host='files.pythonhosted.org', port=443): 读取超时（read timeout=15）\")'",
  "regex": "WARNING:\\ Retrying\\ \\(Retry\\(total=4,\\ connect=None,\\ read=None,\\ redirect=None,\\ status=None\\)\\)\\ after\\ connection\\ broken\\ by\\ 'ReadTimeoutError\\(\"HTTPSConnectionPool\\(host='files\\.pythonhosted\\.org',\\ port=443\\):\\ Read\\ timed\\ out\\.\\ \\(read\\ timeout=15\\)\"\\)'",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Network latency or a slow/blocked connection to files.pythonhosted.org exceeds pip's default read timeout, causing repeated retries and eventual failure.",
  "root_cause_type": "generic",
  "root_cause_zh": "到 files.pythonhosted.org 的网络延迟或连接缓慢/被阻断，超出 pip 默认读取超时，导致反复重试并最终失败。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The underlying network latency is unchanged; retries hit the same timeout.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Trusted-host only disables TLS verification; it does not affect read timeouts.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Removes retries but the first attempt still times out.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Increase timeouts and retries: pip install --timeout 120 --retries 10 package",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Use a faster mirror: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple package",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.88,
      "how": "Configure globally: pip config set global.timeout 120 && pip config set global.index-url https://pypi.org/simple",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-05-09",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}