python
config_error
ai_generated
true
ERROR: Unsupported hash name 'sha512' for package 'foo'
ID: python/pip-install-error-unsupported-hash-algorithm
80%Fix Rate
84%Confidence
0Evidence
2025-09-20First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.7 | active | — | — | — |
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
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.
generic中文
requirements 文件指定了 pip 在当前版本或环境中不支持的哈希算法。pip 通常支持 sha256、sha384、sha512,但旧版本可能不支持。
Workarounds
-
90% success
Upgrade pip to the latest version: python -m pip install --upgrade pip.
-
95% success
Change the hash algorithm to sha256 in requirements.txt, which is universally supported.
Dead Ends
Common approaches that don't work:
-
70% fail
Disables hash checking, reducing security and potentially allowing tampered packages.
-
90% fail
Doesn't address the hash algorithm issue; still fails.