{
  "id": "pip/pep-517-backend-not-found-during-build",
  "signature": "ERROR: Could not find a backend for building the project. The project uses a build backend that is not installed. The build backend is '<backend_name>'.",
  "signature_zh": "错误：找不到用于构建项目的后端。该项目使用一个尚未安装的构建后端。构建后端为 '<backend_name>'。",
  "regex": "ERROR: Could not find a backend for building the project\\. The project uses a build backend that is not installed\\. The build backend is '[^']+'\\.",
  "domain": "pip",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The pyproject.toml specifies a build backend (e.g., `setuptools.build_meta`, `flit_core.buildapi`, `maturin`) that is not installed in the current environment, causing pip to fail when trying to build the package.",
  "root_cause_type": "generic",
  "root_cause_zh": "pyproject.toml 指定了一个构建后端（例如 `setuptools.build_meta`、`flit_core.buildapi`、`maturin`），但该后端未在当前环境中安装，导致 pip 在尝试构建包时失败。",
  "versions": [
    {
      "version": "pip 21.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 23.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 24.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This flag disables build isolation but does not install the missing backend; pip will still fail if the backend is not available in the environment.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The `--no-deps` flag only affects runtime dependencies, not build dependencies; the build backend is a build dependency and is still required.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Install the missing build backend explicitly: `pip install <backend_name>` (e.g., `pip install setuptools` or `pip install flit_core`), then retry the original install.",
      "success_rate": 0.85,
      "how": "Install the missing build backend explicitly: `pip install <backend_name>` (e.g., `pip install setuptools` or `pip install flit_core`), then retry the original install.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use `pip install <package> --no-build-isolation --no-deps` and manually provide the backend via environment variable: `PIP_REQUIRE_VIRTUALENV=false pip install <package> --no-build-isolation`",
      "success_rate": 0.7,
      "how": "Use `pip install <package> --no-build-isolation --no-deps` and manually provide the backend via environment variable: `PIP_REQUIRE_VIRTUALENV=false pip install <package> --no-build-isolation`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "显式安装缺失的构建后端：`pip install <backend_name>`（例如 `pip install setuptools` 或 `pip install flit_core`），然后重试原始安装。",
    "使用 `pip install <package> --no-build-isolation --no-deps` 并通过环境变量手动提供后端：`PIP_REQUIRE_VIRTUALENV=false pip install <package> --no-build-isolation`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://packaging.python.org/en/latest/tutorials/packaging-projects/#configuring-metadata",
  "official_doc_section": null,
  "error_code": "ERROR",
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.82,
  "resolvable": "true",
  "first_seen": "2023-05-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}