{
  "id": "python/pip-wheel-building-failure",
  "signature": "ERROR: Failed building wheel for mypackage\n  error: command 'cmake' failed: No such file or directory",
  "signature_zh": "错误：为 mypackage 构建 wheel 失败\n  错误：命令 'cmake' 失败：没有那个文件或目录",
  "regex": "ERROR:\\ Failed\\ building\\ wheel\\ for\\ mypackage\\\n\\ \\ error:\\ command\\ 'cmake'\\ failed:\\ No\\ such\\ file\\ or\\ directory",
  "domain": "python",
  "category": "system_error",
  "subcategory": null,
  "root_cause": "The package requires a build tool (like cmake) that is not installed on the system.",
  "root_cause_type": "generic",
  "root_cause_zh": "该包需要构建工具（如 cmake），但系统上未安装。",
  "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Installing cmake but not adding it to PATH",
      "why_fails": "pip cannot find the cmake executable if it's not in PATH.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using --no-build-isolation to use system-installed cmake",
      "why_fails": "If cmake is not installed at all, this flag does not help.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Install cmake and ensure it is in PATH",
      "success_rate": 0.9,
      "how": "On Ubuntu: `sudo apt-get install cmake`. On macOS: `brew install cmake`. Verify with `cmake --version`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a pre-built wheel from PyPI or a third-party index",
      "success_rate": 0.75,
      "how": "`pip install --only-binary=:all: mypackage` or download a .whl file and install with `pip install mypackage.whl`",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}