# 错误：子进程以错误退出

× python setup.py bdist_wheel 未能成功运行。
│ 退出代码：1
╰─> [12 行输出]
    ModuleNotFoundError: 没有名为 'Cython' 的模块

- **ID:** `python/pip-subprocess-exited-with-error-build-backend`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

包的构建后端需要构建时依赖项（Cython、numpy 等），但这些依赖项未在 pyproject.toml 的 [build-system].requires 中声明，因此隔离的构建环境缺少它们。

## 版本兼容性

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

## 解决方案

1. **** (85% 成功率)
   ```
   python -m pip install Cython numpy
python -m pip install --no-build-isolation mypkg
   ```
2. **** (90% 成功率)
   ```
   # If the project ships pyproject.toml with [build-system].requires
python -m pip install build
python -m build  # installs build-system.requires automatically
   ```

## 无效尝试

- **** — PEP 517 build isolation uses a fresh env; packages in your venv are invisible to the build. (80% 失败率)
- **** — The missing dependency is deterministic; retrying produces identical failure. (90% 失败率)
