# 错误：无法安装 package-a==1.0 和 package-b==2.0，因为这些包版本的依赖项存在冲突。
冲突由以下原因引起：
    用户请求 package-a==1.0
    package-b 2.0 依赖于 package-a<1.0

- **ID:** `python/pip-resolution-too-deep-backtracking`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

依赖图无法满足：两个固定版本的需求传递性地要求共享包的互不兼容版本。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   pip install 'package-a>=0.9,<1.0' 'package-b==2.0'
   ```
2. **** (85% 成功率)
   ```
   pip install --dry-run --report report.json package-a==1.0 package-b==2.0
python -m json.tool report.json | less
   ```

## 无效尝试

- **** — Force install does not resolve version conflicts; pip still refuses to pick a solution. (85% 失败率)
- **** — The legacy resolver may install an inconsistent set, leading to runtime ImportErrors later. (70% 失败率)
- **** — Unpinned installs may still conflict on transitive constraints and reproduce the error. (60% 失败率)
