python
install_error
ai_generated
true
错误:无法为 package 构建 wheel,该包使用 PEP 517 且无法直接安装
ERROR: Could not build wheels for package, which use PEP 517 and cannot be installed directly
ID: python/setuptools-missing-build-backend
80%修复率
86%置信度
0证据数
2024-05-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.x | active | — | — | — |
根因分析
该包使用 PEP 517 构建后端,但所需的构建依赖(如 setuptools、wheel 或自定义后端)未安装在隔离的构建环境中。
English
The package uses a PEP 517 build backend but the required build dependency (e.g., setuptools, wheel, or a custom backend) is not installed in the isolated build environment.
解决方案
-
90% 成功率
pip install setuptools wheel cython # then pip install package
-
85% 成功率
pip install setuptools wheel && pip install package --no-build-isolation
无效尝试
常见但无效的做法:
-
70% 失败
Disabling build isolation requires the build backend to already be installed in the current environment; if it isn't, the error persists.
-
80% 失败
Upgrading pip does not install the missing build backend specified in pyproject.toml [build-system].requires.