{
  "id": "python/pip-install-error-unsupported-hash-algorithm",
  "signature": "ERROR: Unsupported hash name 'sha512' for package 'foo'",
  "signature_zh": "错误：包 'foo' 不支持的哈希名称 'sha512'",
  "regex": "ERROR:\\ Unsupported\\ hash\\ name\\ 'sha512'\\ for\\ package\\ 'foo'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The requirements file specifies a hash algorithm that pip does not support in the current version or environment. pip typically supports sha256, sha384, sha512, but older versions may not.",
  "root_cause_type": "generic",
  "root_cause_zh": "requirements 文件指定了 pip 在当前版本或环境中不支持的哈希算法。pip 通常支持 sha256、sha384、sha512，但旧版本可能不支持。",
  "versions": [
    {
      "version": "3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Disables hash checking, reducing security and potentially allowing tampered packages.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Doesn't address the hash algorithm issue; still fails.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Upgrade pip to the latest version: python -m pip install --upgrade pip.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Change the hash algorithm to sha256 in requirements.txt, which is universally supported.",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-09-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}