# 错误：需要 Microsoft Visual C++ 14.0 或更高版本。通过 "Microsoft C++ Build Tools" 获取：https://visualstudio.microsoft.com/visual-cpp-build-tools/

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

## 根因

包包含 C 扩展，需要在 Windows 上使用 C 编译器构建。

## 版本兼容性

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

## 解决方案

1. **** (95% 成功率)
   ```
   Install Microsoft C++ Build Tools from the provided URL.
   ```
2. **** (80% 成功率)
   ```
   Use a pre-built wheel if available: `pip install --only-binary :all: foo`.
   ```

## 无效尝试

- **** — Forces source build, which still needs a compiler. (90% 失败率)
- **** — Installation will fail. (95% 失败率)
