# 错误：pip 的旧版依赖解析器已弃用。请升级 pip 以使用新解析器。

- **ID:** `python/pip-unsupported-given-version`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

使用了旧版 pip，并带有触发旧版解析器的标志或配置。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## 解决方案

1. **Upgrade pip to the latest version** (95% 成功率)
   ```
   pip install --upgrade pip
   ```
2. **Use Python 3.11+ which ships with a newer pip** (90% 成功率)
   ```
   python3.11 -m pip install mypackage
   ```

## 无效尝试

- **Using --use-deprecated legacy-resolver** — This is deprecated and may be removed; it's better to upgrade. (70% 失败率)
- **Ignoring the warning** — The resolver may produce incorrect results or errors. (60% 失败率)
