{
  "id": "python/setuptools-cython-build-error-missing-compiler",
  "signature": "error: command 'gcc' failed: No such file or directory",
  "signature_zh": "错误：命令 'gcc' 失败：没有那个文件或目录",
  "regex": "error:\\ command\\ 'gcc'\\ failed:\\ No\\ such\\ file\\ or\\ directory",
  "domain": "python",
  "category": "system_error",
  "subcategory": null,
  "root_cause": "Building a package with C extensions requires a C compiler (gcc), which is not installed or not in PATH. This is common on Windows without Visual Studio Build Tools or on minimal Linux installations.",
  "root_cause_type": "generic",
  "root_cause_zh": "构建带有 C 扩展的包需要 C 编译器（gcc），但未安装或不在 PATH 中。这在没有 Visual Studio Build Tools 的 Windows 或最小化 Linux 安装中很常见。",
  "versions": [
    {
      "version": "3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "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"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If no wheel is available for the platform, pip falls back to source build and fails again.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Clang is not installed, so the command still fails.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "On Linux: sudo apt-get install build-essential. On macOS: xcode-select --install. On Windows: install Microsoft Visual C++ Build Tools.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Use conda to install the package, which provides pre-built binaries: conda install <package>.",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-05-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}