# 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 hashes from the file.

- **ID:** `python/pip-hash-mismatch`
- **Domain:** python
- **Category:** security_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The downloaded package does not match the expected hash specified in the requirements file, possibly due to corruption or a man-in-the-middle attack.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   pip hash package.whl  # generate new hash and replace in file
   ```
2. **** (80% success)
   ```
   PIP_REQUIRE_HASHES=0 pip install package
   ```

## Dead Ends

- **** — This bypasses security checks and may install compromised packages. (20% fail)
- **** — If the source is compromised, re-downloading may fetch the same wrong hashes. (50% fail)
