{
  "id": "python/setuptools-pyproject-missing-build-system",
  "signature": "ERROR: File 'pyproject.toml' does not define a 'build-system.requires' table.",
  "signature_zh": "错误：文件 'pyproject.toml' 未定义 'build-system.requires' 表。",
  "regex": "ERROR:\\ File\\ 'pyproject\\.toml'\\ does\\ not\\ define\\ a\\ 'build\\-system\\.requires'\\ table\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "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.",
  "root_cause_type": "generic",
  "root_cause_zh": "存在 pyproject.toml 但缺少 [build-system] 部分，因此 pip 无法确定构建后端。这通常发生在工具写入不完整的 pyproject.toml 时。",
  "versions": [
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Disabling isolation doesn't supply the missing build-system table; pip still refuses to proceed.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Removing the file forces legacy setup.py behavior, which may not exist for a PEP 517-only project.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "[build-system]\nrequires = [\"setuptools>=61\", \"wheel\"]\nbuild-backend = \"setuptools.build_meta\"",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.75,
      "how": "pip install build\npython -m build --sdist  # validates pyproject.toml",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}