# 错误: 用法: pytest [选项] [文件或目录] [文件或目录] [...]
pytest: 错误: 无法识别的参数: --html=report.html

- **ID:** `python/pytest-html-report-missing`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

pytest-html 插件未安装，因此无法识别 --html 选项。

## 版本兼容性

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

## 解决方案

1. **** (98% 成功率)
   ```
   Run: pip install pytest-html
   ```
2. **** (95% 成功率)
   ```
   Add 'pytest-html' to requirements.txt and reinstall dependencies.
   ```

## 无效尝试

- **** — This generates a different format and doesn't provide HTML reports. (90% 失败率)
- **** — This loses the HTML report functionality. (80% 失败率)
