# TypeError: 未安装 JSON 提供程序。运行 'pip install flask[json]'。

- **ID:** `python/flask-json-provider-error`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

Flask 安装时未包含 JSON 额外依赖，如 itsdangerous 或 simplejson。

## 版本兼容性

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

## 解决方案

1. **** (100% 成功率)
   ```
   Run pip install 'flask[json]' to install all JSON dependencies.
   ```
2. **** (90% 成功率)
   ```
   Manually install missing packages: pip install itsdangerous simplejson
   ```

## 无效尝试

- **** — Both are required for Flask's JSON provider. (60% 失败率)
- **** — It still lacks the required dependencies. (90% 失败率)
