python
install_error
ai_generated
true
ERROR: unknown option --no-cache-dir
ID: python/pip-no-cache-dir-option
80%Fix Rate
85%Confidence
0Evidence
2025-04-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.6 | active | — | — | — |
| 3.7 | active | — | — | — |
Root Cause
The pip version is too old to support the --no-cache-dir option.
generic中文
pip 版本过旧,不支持 --no-cache-dir 选项。
Workarounds
-
95% success Upgrade pip
python -m pip install --upgrade pip
-
90% success Use pip install --no-cache-dir with newer pip
After upgrade, use the option
Dead Ends
Common approaches that don't work:
-
Using --no-cache instead
50% fail
May not be recognized either.
-
Setting environment variable PIP_NO_CACHE_DIR
40% fail
May not be read by old pip.