python
install_error
ai_generated
partial
错误:无法安装 foo==1.0 和 bar==2.0,因为这些包版本存在依赖冲突。ResolutionTooDeep: 2000000
ERROR: Cannot install foo==1.0 and bar==2.0 because these package versions have conflicting dependencies. ResolutionTooDeep: 2000000
ID: python/pip-resolution-too-deep
80%修复率
84%置信度
0证据数
2024-05-08首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.x | active | — | — | — |
根因分析
回溯解析器超过其搜索深度,因为两个或多个软件包需要共享依赖项的互斥版本,形成不可满足的约束图。
English
The backtracking resolver exceeded its search depth because two or more packages require mutually exclusive versions of a shared dependency, creating an unsatisfiable constraint graph.
解决方案
-
85% 成功率
# Inspect the conflict pip install --dry-run foo==1.0 bar==2.0 # Relax pins to compatible ranges pip install 'foo>=1.0,<2' 'bar>=2.0,<3'
-
80% 成功率
pip install uv uv pip install foo==1.0 bar==2.0
无效尝试
常见但无效的做法:
-
85% 失败
The constraint set is unsatisfiable; more rounds just burns CPU before failing again.
-
70% 失败
Skips dependency installation, leaving imports broken at runtime.