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

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

## 根因

需求字符串使用了三个等号，这不是有效的 PEP 440 版本说明符。pip 只支持 ==、>=、<=、~=、!=、<、>，而 ===（任意相等）要求与完整版本字符串精确匹配。

## 版本兼容性

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

## 解决方案

1. **** (98% 成功率)
   ```
   pip install 'requests==2.31.0'
   ```
2. **** (85% 成功率)
   ```
   pip install 'somepkg===1.0.0+localbuild'
   ```

## 无效尝试

- **** — The triple-equals syntax is valid PEP 440 but rarely what users want; upgrading pip does not change the parser's semantics. (75% 失败率)
- **** — Quoting is not the issue—the operator itself is wrong for the intent. (90% 失败率)
