python
install_error
ai_generated
true
错误:pip 的旧版依赖解析器已弃用。请升级 pip 以使用新解析器。
ERROR: pip's legacy dependency resolver is deprecated. Please upgrade pip to use the new resolver.
ID: python/pip-unsupported-given-version
80%修复率
85%置信度
0证据数
2025-06-30首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
根因分析
使用了旧版 pip,并带有触发旧版解析器的标志或配置。
English
An older version of pip is being used with a flag or configuration that triggers the legacy resolver.
解决方案
-
95% 成功率 Upgrade pip to the latest version
pip install --upgrade pip
-
90% 成功率 Use Python 3.11+ which ships with a newer pip
python3.11 -m pip install mypackage
无效尝试
常见但无效的做法:
-
Using --use-deprecated legacy-resolver
70% 失败
This is deprecated and may be removed; it's better to upgrade.
-
Ignoring the warning
60% 失败
The resolver may produce incorrect results or errors.