{
  "id": "python/pip-package-hash-mismatch",
  "signature": "ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, update the hashes. Otherwise, remove the file.",
  "signature_zh": "错误：这些包与requirements文件中的哈希不匹配。如果您更新了包版本，请更新哈希。否则，请删除文件。",
  "regex": "ERROR:\\ THESE\\ PACKAGES\\ DO\\ NOT\\ MATCH\\ THE\\ HASHES\\ FROM\\ THE\\ REQUIREMENTS\\ FILE\\.\\ If\\ you\\ have\\ updated\\ the\\ package\\ versions,\\ update\\ the\\ hashes\\.\\ Otherwise,\\ remove\\ the\\ file\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The downloaded package hash does not match the hash specified in a requirements file with --hash constraints.",
  "root_cause_type": "generic",
  "root_cause_zh": "下载的包哈希与带有--hash约束的requirements文件中指定的哈希不匹配。",
  "versions": [
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Ignoring hashes with --no-hash-check",
      "why_fails": "Bypasses security checks; may install malicious package.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "Re-downloading the same package",
      "why_fails": "Hash mismatch persists if package was updated on server.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Update hashes in requirements file",
      "success_rate": 0.9,
      "how": "pip hash package.whl\n# Update the hash in requirements.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "Regenerate requirements file with hashes",
      "success_rate": 0.85,
      "how": "pip freeze --hash > 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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-12-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}