python
config_error
ai_generated
true
ERROR: File 'pyproject.toml' does not define a 'build-system.requires' table.
ID: python/setuptools-pyproject-missing-build-system
80%Fix Rate
88%Confidence
0Evidence
2024-04-08First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
Root Cause
A pyproject.toml exists but lacks a [build-system] section, so pip cannot determine the build backend. This often happens when a tool writes a partial pyproject.toml.
generic中文
存在 pyproject.toml 但缺少 [build-system] 部分,因此 pip 无法确定构建后端。这通常发生在工具写入不完整的 pyproject.toml 时。
Workarounds
-
90% success
[build-system] requires = ["setuptools>=61", "wheel"] build-backend = "setuptools.build_meta"
-
75% success
pip install build python -m build --sdist # validates pyproject.toml
Dead Ends
Common approaches that don't work:
-
85% fail
Disabling isolation doesn't supply the missing build-system table; pip still refuses to proceed.
-
60% fail
Removing the file forces legacy setup.py behavior, which may not exist for a PEP 517-only project.