python
install_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-install-hash-mismatch
80%Fix Rate
86%Confidence
0Evidence
2024-08-30First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.x | active | — | — | — |
Root Cause
The downloaded package's hash does not match the hash specified in the requirements file, indicating a corrupted download or a changed package.
generic中文
下载的包的哈希与需求文件中指定的哈希不匹配,表明下载损坏或包已更改。
Workarounds
-
90% success
pip hash package.whl # then update requirements.txt with new hash
-
85% success
pip install --require-hashes -r requirements.txt # after updating hashes
Dead Ends
Common approaches that don't work:
-
70% fail
Loses the security benefit of hash checking; not recommended.
-
60% fail
If the package on the index has changed, retrying will still fail.