# 错误：无效的需求：'requests==='

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

## 根因

需求说明符包含格式错误的版本操作符，没有版本号，导致 pip 的需求解析器失败。

## 版本兼容性

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

## 解决方案

1. **** (99% 成功率)
   ```
   Replace 'requests===' with a valid specifier, e.g. `pip install 'requests==2.31.0'` or `pip install requests`.
   ```
2. **** (97% 成功率)
   ```
   Use quotes: `pip install 'requests>=2,<3'` so the shell doesn't strip operators.
   ```

## 无效尝试

- **** — Cache is unrelated to parsing the requirement string; the syntax error remains. (95% 失败率)
- **** — The parser is already correct; the user-supplied requirement string is invalid. (90% 失败率)
