# 错误：来自 https://... 的 package 缺少一些构建依赖：未安装 'setuptools>=40.8.0'。

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

## 根因

包的 pyproject.toml 指定了隔离构建环境中不存在的构建依赖。pip 尝试安装它们，但可能因网络或解析器问题而失败。

## 版本兼容性

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

## 解决方案

1. **** (90% 成功率)
   ```
   pip install setuptools>=40.8.0 wheel cython  # then pip install package
   ```
2. **** (85% 成功率)
   ```
   pip install -r build-requirements.txt && pip install package --no-build-isolation
   ```

## 无效尝试

- **** — Requires the build dependencies to be already installed; if not, the error persists. (75% 失败率)
- **** — Other build dependencies may also be missing; installing only setuptools is incomplete. (60% 失败率)
