{
  "id": "python/setuptools-command-not-found",
  "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": "install_error",
  "subcategory": null,
  "root_cause": "When building a Python package with C extensions, setuptools tries to invoke the C compiler, but gcc is not installed or not in PATH.",
  "root_cause_type": "generic",
  "root_cause_zh": "当构建带有C扩展的Python包时，setuptools尝试调用C编译器，但gcc未安装或不在PATH中。",
  "versions": [
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Still fails because the compiler doesn't exist.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Skips isolation but still needs a compiler.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Headers are not enough; compiler binary is required.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "apt-get install build-essential (Debian/Ubuntu) or yum install gcc (RHEL)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install --only-binary :all: package",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.7,
      "how": "export CC='clang' if clang is available",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}