{
  "id": "python/pip-build-isolation-missing-build-dependency",
  "signature": "ERROR: Could not build wheels for foo, which is required to install pyproject.toml-based projects",
  "signature_zh": "错误：无法为 foo 构建 wheel，而这是安装基于 pyproject.toml 的项目所必需的。",
  "regex": "ERROR:\\ Could\\ not\\ build\\ wheels\\ for\\ foo,\\ which\\ is\\ required\\ to\\ install\\ pyproject\\.toml\\-based\\ projects",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Build backend requires tools (e.g., Cython, numpy) not declared in build-system.requires, and build isolation hides them.",
  "root_cause_type": "generic",
  "root_cause_zh": "构建后端需要未在 build-system.requires 中声明的工具（如 Cython、numpy），而构建隔离隐藏了它们。",
  "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Requires all build tools pre-installed globally; often fails with missing headers or wrong versions.",
      "fail_rate": 0.55,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Transient network issues aside, missing build deps won't resolve by retrying.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install -U pip setuptools wheel cython numpy\npip install foo",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install --only-binary=:all: foo",
      "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-04-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}