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

Also available as: JSON · Markdown · 中文
80%Fix Rate
86%Confidence
0Evidence
2025-02-08First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
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

  1. 90% success
    pip cache purge
    pip install --require-hashes -r requirements.txt
  2. 85% success
    pip-compile --generate-hashes requirements.in

Dead Ends

Common approaches that don't work:

  1. 70% fail

    Hash check still applies to the downloaded artifact.

  2. 60% fail

    Weakens supply-chain security and may violate policy.