{
  "id": "python/pip-cache-corruption",
  "signature": "ERROR: Exception: Traceback (most recent call last):\n...\nFile \"pip/_vendor/urllib3/response.py\", line 438, in _error_catcher\n    raise ProtocolError('Connection broken: %r' % e, e)\npip._vendor.urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))",
  "signature_zh": "错误：异常：回溯（最近一次调用）：\n...\n文件 \"pip/_vendor/urllib3/response.py\"，第 438 行，在 _error_catcher 中\n    引发 ProtocolError('连接中断：%r' % e, e)\npip._vendor.urllib3.exceptions.ProtocolError: ('连接中断：IncompleteRead(0 字节已读取)', IncompleteRead(0 字节已读取))",
  "regex": "ERROR:\\ Exception:\\ Traceback\\ \\(most\\ recent\\ call\\ last\\):\\\n\\.\\.\\.\\\nFile\\ \"pip/_vendor/urllib3/response\\.py\",\\ line\\ 438,\\ in\\ _error_catcher\\\n\\ \\ \\ \\ raise\\ ProtocolError\\('Connection\\ broken:\\ %r'\\ %\\ e,\\ e\\)\\\npip\\._vendor\\.urllib3\\.exceptions\\.ProtocolError:\\ \\('Connection\\ broken:\\ IncompleteRead\\(0\\ bytes\\ read\\)',\\ IncompleteRead\\(0\\ bytes\\ read\\)\\)",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "A corrupted download cache causes incomplete reads during package installation.",
  "root_cause_type": "generic",
  "root_cause_zh": "损坏的下载缓存导致包安装期间读取不完整。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increasing timeout settings",
      "why_fails": "The issue is corrupted data, not a timeout.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a different network interface",
      "why_fails": "The cache is local; network changes don't fix corruption.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Clear pip's cache and retry",
      "success_rate": 0.9,
      "how": "pip cache purge && pip install mypackage",
      "condition": "",
      "sources": []
    },
    {
      "action": "Disable caching for the installation",
      "success_rate": 0.85,
      "how": "pip install --no-cache-dir mypackage",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-07-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}