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

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

## 根因

新版 pip 解析器检测到旧版解析器会静默忽略的依赖冲突，导致环境损坏。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.7-3.12 | active | — | — |

## 解决方案

1. **** (85% 成功率)
   ```
   pip install 'package-a<2' 'package-b<2'  # after checking compatibility on PyPI
   ```
2. **** (88% 成功率)
   ```
   pip install pip-tools && pip-compile requirements.in && pip-sync requirements.txt
   ```

## 无效尝试

- **** — Bypasses safety checks, resulting in an inconsistent environment with subtly broken imports at runtime. (75% 失败率)
- **** — Does not resolve the underlying version incompatibility between the two packages. (90% 失败率)
