# 错误：未知选项 --no-cache-dir

- **ID:** `python/pip-no-cache-dir-option`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

pip 版本过旧，不支持 --no-cache-dir 选项。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.6 | active | — | — |
| 3.7 | active | — | — |

## 解决方案

1. **Upgrade pip** (95% 成功率)
   ```
   python -m pip install --upgrade pip
   ```
2. **Use pip install --no-cache-dir with newer pip** (90% 成功率)
   ```
   After upgrade, use the option
   ```

## 无效尝试

- **Using --no-cache instead** — May not be recognized either. (50% 失败率)
- **Setting environment variable PIP_NO_CACHE_DIR** — May not be read by old pip. (40% 失败率)
