{
  "id": "python/pip-cache-http-error-304-loop",
  "signature": "WARNING: Cache entry deserialization failed, entry ignored\nERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE.",
  "signature_zh": "警告：缓存条目反序列化失败，已忽略该条目\n错误：这些包与需求文件中的哈希不匹配。",
  "regex": "WARNING:\\ Cache\\ entry\\ deserialization\\ failed,\\ entry\\ ignored\\\nERROR:\\ THESE\\ PACKAGES\\ DO\\ NOT\\ MATCH\\ THE\\ HASHES\\ FROM\\ THE\\ REQUIREMENTS\\ FILE\\.",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "pip's HTTP cache holds a corrupted or stale artifact whose hash no longer matches the pinned --hash in requirements. Often after a partial download or index change.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 的 HTTP 缓存持有一个损坏或过期的构件，其哈希不再匹配 requirements 中固定的 --hash。常见于下载中断或索引变更后。",
  "versions": [
    {
      "version": "3.8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Disables supply-chain integrity checking entirely, defeating the purpose and exposing you to tampered packages.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "You no longer know the artifact is authentic; you've just accepted whatever was downloaded.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.92,
      "how": "pip cache purge\npip install --no-cache-dir -r requirements.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip download --no-deps --require-hashes -r requirements.txt -d /tmp/dl\npip hash /tmp/dl/foo-1.2.3-py3-none-any.whl  # update requirements",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-04",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}