{
  "id": "python/pip-read-timeout-pypi",
  "signature": "ERROR: Exception:\nTraceback (most recent call last):\n  ...\npip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.",
  "signature_zh": "错误：异常：\n回溯（最近调用最后）：\n  ...\npip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): 读取超时。",
  "regex": "ERROR:\\ Exception:\\\nTraceback\\ \\(most\\ recent\\ call\\ last\\):\\\n\\ \\ \\.\\.\\.\\\npip\\._vendor\\.urllib3\\.exceptions\\.ReadTimeoutError:\\ HTTPSConnectionPool\\(host='files\\.pythonhosted\\.org',\\ port=443\\):\\ Read\\ timed\\ out\\.",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The network connection to files.pythonhosted.org is too slow or unstable, so pip's default read timeout elapses before a wheel finishes downloading.",
  "root_cause_type": "generic",
  "root_cause_zh": "到 files.pythonhosted.org 的网络连接过慢或不稳定，导致 pip 的默认读取超时在 wheel 下载完成前就已耗尽。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Retries help with transient failures but do not extend the per-read timeout.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Cache is unrelated to network timeout.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Prereleases do not fix network latency.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Run pip install --timeout 120 <pkg>, or set PIP_DEFAULT_TIMEOUT=120 in the environment.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.93,
      "how": "Run pip install -i https://pypi.tuna.tsinghua.edu.cn/simple <pkg> (or another regional mirror).",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.88,
      "how": "Use curl -O https://files.pythonhosted.org/.../pkg.whl then pip install ./pkg.whl.",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-11",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}