{
  "id": "python/pip-install-hash-mismatch",
  "signature": "ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes.",
  "signature_zh": "错误：这些包与需求文件中的哈希不匹配。如果您更新了包版本，请更新哈希。",
  "regex": "ERROR:\\ THESE\\ PACKAGES\\ DO\\ NOT\\ MATCH\\ THE\\ HASHES\\ FROM\\ THE\\ REQUIREMENTS\\ FILE\\.\\ If\\ you\\ have\\ updated\\ the\\ package\\ versions,\\ please\\ update\\ the\\ hashes\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The downloaded package's hash does not match the hash specified in the requirements file, indicating a corrupted download or a changed package.",
  "root_cause_type": "generic",
  "root_cause_zh": "下载的包的哈希与需求文件中指定的哈希不匹配，表明下载损坏或包已更改。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Loses the security benefit of hash checking; not recommended.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the package on the index has changed, retrying will still fail.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip hash package.whl  # then update requirements.txt with new hash",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install --require-hashes -r requirements.txt  # after updating hashes",
      "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-08-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}