python
data_error
ai_generated
true
错误:package-1.0-py3-none-any.whl的缓存条目无效 - 缓存条目已损坏
ERROR: Invalid cache entry for package-1.0-py3-none-any.whl - cache entry is corrupted
ID: python/pip-cache-corrupted
80%修复率
88%置信度
0证据数
2025-08-15首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.10 | active | — | — | — |
根因分析
pip缓存包含损坏的wheel文件,通常由于下载中断或磁盘错误。
English
The pip cache contains a corrupted wheel file, often due to an interrupted download or disk error.
解决方案
-
90% 成功率
pip cache purge
-
95% 成功率
pip install --no-cache-dir package
-
90% 成功率
rm -rf ~/.cache/pip
无效尝试
常见但无效的做法:
-
80% 失败
Uses the same corrupted cache entry.
-
50% 失败
May still have the corrupted file elsewhere.
-
70% 失败
Disables cache but also index.