{
  "id": "python/pip-cache-corrupt-wheel-hash",
  "signature": "ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE.\n    Expected sha256 abc...\n         Got        def...\n    /root/.cache/pip/wheels/.../mypkg-1.0-py3-none-any.whl",
  "signature_zh": "错误：这些包与需求文件中的哈希值不匹配。\n    期望 sha256 abc...\n         实际 def...\n    /root/.cache/pip/wheels/.../mypkg-1.0-py3-none-any.whl",
  "regex": "ERROR:\\ THESE\\ PACKAGES\\ DO\\ NOT\\ MATCH\\ THE\\ HASHES\\ FROM\\ THE\\ REQUIREMENTS\\ FILE\\.\\\n\\ \\ \\ \\ Expected\\ sha256\\ abc\\.\\.\\.\\\n\\ \\ \\ \\ \\ \\ \\ \\ \\ Got\\ \\ \\ \\ \\ \\ \\ \\ def\\.\\.\\.\\\n\\ \\ \\ \\ /root/\\.cache/pip/wheels/\\.\\.\\./mypkg\\-1\\.0\\-py3\\-none\\-any\\.whl",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "A cached wheel in ~/.cache/pip is corrupted or was built from different sources, so its hash no longer matches the pinned value.",
  "root_cause_type": "generic",
  "root_cause_zh": "~/.cache/pip 中的缓存 wheel 已损坏或由不同源码构建，因此其哈希不再与固定值匹配。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Force reinstall still consults the cache and reuses the corrupted wheel.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Does not bypass hash verification or cache lookup.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Only affects TLS trust, not wheel hash verification.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.97,
      "how": "pip cache purge\npip install --no-cache-dir -r requirements.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "rm -rf ~/.cache/pip/wheels\npip install -r requirements.txt",
      "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": "2024-11-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}