{
  "id": "python/pip-build-deps-not-installed",
  "signature": "ERROR: Failed building wheel for package_name",
  "signature_zh": "错误：为 package_name 构建 wheel 失败",
  "regex": "ERROR:\\ Failed\\ building\\ wheel\\ for\\ package_name",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Missing build dependencies (e.g., compiler, headers) for a package with native extensions.",
  "root_cause_type": "generic",
  "root_cause_zh": "缺少具有本地扩展的包的构建依赖项（如编译器、头文件）。",
  "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": "Installing the package with --no-cache-dir",
      "why_fails": "Cache is not the issue; missing dependencies remain.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "Upgrading pip to latest",
      "why_fails": "Pip version doesn't provide system build tools.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Install system build tools",
      "success_rate": 0.9,
      "how": "apt-get install build-essential (Linux) or xcode-select --install (macOS)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a pre-built wheel if available",
      "success_rate": 0.6,
      "how": "pip install package_name --only-binary :all:",
      "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.84,
  "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": []
}