{
  "id": "python/setuptools-build-backend-missing",
  "signature": "ERROR: Could not build wheels for mypackage, which is required to install pyproject.toml-based projects\n\n  error: invalid command 'bdist_wheel'\n\n  ERROR: Failed building wheel for mypackage",
  "signature_zh": "错误：无法为 mypackage 构建 wheel，这是安装基于 pyproject.toml 的项目所必需的\n\n  错误：无效命令 'bdist_wheel'\n\n  错误：为 mypackage 构建 wheel 失败",
  "regex": "ERROR:\\ Could\\ not\\ build\\ wheels\\ for\\ mypackage,\\ which\\ is\\ required\\ to\\ install\\ pyproject\\.toml\\-based\\ projects\\\n\\\n\\ \\ error:\\ invalid\\ command\\ 'bdist_wheel'\\\n\\\n\\ \\ ERROR:\\ Failed\\ building\\ wheel\\ for\\ mypackage",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The project's build-system.requires in pyproject.toml does not include 'wheel', and the legacy build backend (setuptools.build_meta:__legacy__) cannot build a wheel without it.",
  "root_cause_type": "generic",
  "root_cause_zh": "项目的 pyproject.toml 中的 build-system.requires 未包含 'wheel'，而旧版构建后端（setuptools.build_meta:__legacy__）在没有它的情况下无法构建 wheel。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "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": "Forces source build, which still needs wheel to produce the artifact for installation.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Uses the ambient environment's setuptools, which may also lack wheel.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "[build-system]\\nrequires = [\"setuptools>=61\", \"wheel\"]\\nbuild-backend = \"setuptools.build_meta\"",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip install --upgrade setuptools wheel && pip install mypackage",
      "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-06-17",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}