# 错误：ResolutionImpossible：无法安装 package-a 和 package-b，因为这些包版本存在冲突的依赖关系。

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

## 根因

pip 的依赖解析器（resolvelib）无法找到满足所有约束的包版本集合。这通常发生在传递依赖要求互斥版本时。

## 版本兼容性

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

## 解决方案

1. **** (80% 成功率)
   ```
   pip install 'package-a==1.2.0' 'package-b==2.0.0'  # choose versions with compatible deps
   ```
2. **** (60% 成功率)
   ```
   pip install --use-deprecated=legacy-resolver package-a package-b
   ```

## 无效尝试

- **** — --force-reinstall reinstalls but does not resolve version conflicts; the resolver still fails. (90% 失败率)
- **** — Cache clearing does not change dependency metadata; the conflict remains. (85% 失败率)
