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

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

## 根因

需求字符串包含格式错误的版本说明符或无效字符。

## 版本兼容性

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

## 解决方案

1. **Use correct PEP 440 specifiers** (90% 成功率)
   ```
   pip install 'package_name>=1.0,<2.0' (with proper spaces)
   ```
2. **Check for typos in package name** (70% 成功率)
   ```
   Ensure no spaces in name
   ```

## 无效尝试

- **Removing version specifiers entirely** — May install incompatible version. (40% 失败率)
- **Using single equals sign** — Incorrect syntax. (60% 失败率)
