# 错误：无法为 foo 构建 wheel，而这是安装基于 pyproject.toml 的项目所必需的。

- **ID:** `python/pip-build-isolation-missing-build-dependency`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

构建后端需要未在 build-system.requires 中声明的工具（如 Cython、numpy），而构建隔离隐藏了它们。

## 版本兼容性

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

## 解决方案

1. **** (85% 成功率)
   ```
   pip install -U pip setuptools wheel cython numpy
pip install foo
   ```
2. **** (80% 成功率)
   ```
   pip install --only-binary=:all: foo
   ```

## 无效尝试

- **** — Requires all build tools pre-installed globally; often fails with missing headers or wrong versions. (55% 失败率)
- **** — Transient network issues aside, missing build deps won't resolve by retrying. (90% 失败率)
