python
install_error
ai_generated
true
错误:未知选项 --no-cache-dir
ERROR: unknown option --no-cache-dir
ID: python/pip-no-cache-dir-option
80%修复率
85%置信度
0证据数
2025-04-01首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.6 | active | — | — | — |
| 3.7 | active | — | — | — |
根因分析
pip 版本过旧,不支持 --no-cache-dir 选项。
English
The pip version is too old to support the --no-cache-dir option.
解决方案
-
95% 成功率 Upgrade pip
python -m pip install --upgrade pip
-
90% 成功率 Use pip install --no-cache-dir with newer pip
After upgrade, use the option
无效尝试
常见但无效的做法:
-
Using --no-cache instead
50% 失败
May not be recognized either.
-
Setting environment variable PIP_NO_CACHE_DIR
40% 失败
May not be read by old pip.