# 错误：无效的依赖要求：'package<1.0,>=2.0'

- **ID:** `python/pip-invalid-requirement-format`
- **领域:** python
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

依赖要求字符串中存在相互冲突的版本约束，无法同时满足。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## 解决方案

1. **Correct the version range to be non-contradictory** (95% 成功率)
   ```
   pip install 'package>=1.0,<2.0'
   ```
2. **Use a single version constraint** (90% 成功率)
   ```
   pip install 'package>=1.0'
   ```

## 无效尝试

- **Reordering the constraints (e.g., '>=2.0,<1.0')** — The conflict remains regardless of order; pip parses the entire set. (95% 失败率)
- **Using a comma instead of a semicolon** — Commas are valid separators; the issue is the logical contradiction. (90% 失败率)
