# ERROR: Unsupported hash name 'sha512' for package 'foo'

- **ID:** `python/pip-install-error-unsupported-hash-algorithm`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## 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.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.7 | active | — | — |
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   Upgrade pip to the latest version: python -m pip install --upgrade pip.
   ```
2. **** (95% success)
   ```
   Change the hash algorithm to sha256 in requirements.txt, which is universally supported.
   ```

## Dead Ends

- **** — Disables hash checking, reducing security and potentially allowing tampered packages. (70% fail)
- **** — Doesn't address the hash algorithm issue; still fails. (90% fail)
