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

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

## 根因

用户明确请求了同一包的两个互斥版本，或者某个依赖要求与固定版本不兼容的版本。

## 版本兼容性

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

## 解决方案

1. **** (85% 成功率)
   ```
   pip install package==2.0  # then update other packages as needed
   ```
2. **** (80% 成功率)
   ```
   echo 'package==2.0' > constraints.txt; pip install -c constraints.txt other-package
   ```

## 无效尝试

- **** — Does not resolve version conflict; the resolver still cannot satisfy both constraints. (95% 失败率)
- **** — pip will not install conflicting versions; the command exits with an error. (90% 失败率)
