{
  "id": "python/setuptools-missing-build-backend",
  "signature": "ERROR: Could not build wheels for package, which use PEP 517 and cannot be installed directly",
  "signature_zh": "错误：无法为 package 构建 wheel，该包使用 PEP 517 且无法直接安装",
  "regex": "ERROR:\\ Could\\ not\\ build\\ wheels\\ for\\ package,\\ which\\ use\\ PEP\\ 517\\ and\\ cannot\\ be\\ installed\\ directly",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "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.",
  "root_cause_type": "generic",
  "root_cause_zh": "该包使用 PEP 517 构建后端，但所需的构建依赖（如 setuptools、wheel 或自定义后端）未安装在隔离的构建环境中。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Disabling build isolation requires the build backend to already be installed in the current environment; if it isn't, the error persists.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Upgrading pip does not install the missing build backend specified in pyproject.toml [build-system].requires.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip install setuptools wheel cython  # then pip install package",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install setuptools wheel && pip install package --no-build-isolation",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}