python data_error ai_generated true

ERROR: Invalid cache entry for package-1.0-py3-none-any.whl - cache entry is corrupted

ID: python/pip-cache-corrupted

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

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.10 active

Root Cause

The pip cache contains a corrupted wheel file, often due to an interrupted download or disk error.

generic

中文

pip缓存包含损坏的wheel文件,通常由于下载中断或磁盘错误。

Workarounds

  1. 90% success
    pip cache purge
  2. 95% success
    pip install --no-cache-dir package
  3. 90% success
    rm -rf ~/.cache/pip

Dead Ends

Common approaches that don't work:

  1. 80% fail

    Uses the same corrupted cache entry.

  2. 50% fail

    May still have the corrupted file elsewhere.

  3. 70% fail

    Disables cache but also index.