python
install_error
ai_generated
true
错误:来自 https://... 的 package 缺少一些构建依赖:未安装 'setuptools>=40.8.0'。
ERROR: Some build dependencies for package from https://... are missing: 'setuptools>=40.8.0' is not installed.
ID: python/pip-install-requires-build-deps
80%修复率
85%置信度
0证据数
2024-09-05首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.x | active | — | — | — |
根因分析
包的 pyproject.toml 指定了隔离构建环境中不存在的构建依赖。pip 尝试安装它们,但可能因网络或解析器问题而失败。
English
The package's pyproject.toml specifies build dependencies that are not present in the isolated build environment. pip attempts to install them but may fail due to network or resolver issues.
解决方案
-
90% 成功率
pip install setuptools>=40.8.0 wheel cython # then pip install package
-
85% 成功率
pip install -r build-requirements.txt && pip install package --no-build-isolation
无效尝试
常见但无效的做法:
-
75% 失败
Requires the build dependencies to be already installed; if not, the error persists.
-
60% 失败
Other build dependencies may also be missing; installing only setuptools is incomplete.