# 错误：无效的依赖项：'package == 1.0.0'

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

## 根因

依赖项字符串在运算符周围包含空格，这在 pip 依赖项语法中是不允许的。

## 版本兼容性

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

## 解决方案

1. **** (99% 成功率)
   ```
   pip install package==1.0.0
   ```
2. **** (95% 成功率)
   ```
   echo 'package==1.0.0' > requirements.txt && pip install -r requirements.txt
   ```
3. **** (85% 成功率)
   ```
   Refer to pip's documentation on requirement specifiers.
   ```

## 无效尝试

- **** — Quoting does not fix the whitespace issue. (90% 失败率)
- **** — Newer pip still enforces no whitespace around operators. (95% 失败率)
- **** — Force reinstall does not bypass parsing. (95% 失败率)
