python
data_error
ai_generated
true
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes.
ID: python/pip-cache-corrupted-wheel
80%Fix Rate
86%Confidence
0Evidence
2025-02-08First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.x | active | — | — | — |
Root Cause
Cached wheel differs from the hash pinned in requirements, often due to a corrupted cache or changed source.
generic中文
缓存的 wheel 与 requirements 中固定的哈希不匹配,通常由于缓存损坏或源更改。
Workarounds
-
90% success
pip cache purge pip install --require-hashes -r requirements.txt
-
85% success
pip-compile --generate-hashes requirements.in
Dead Ends
Common approaches that don't work:
-
70% fail
Hash check still applies to the downloaded artifact.
-
60% fail
Weakens supply-chain security and may violate policy.