{
  "id": "python/setuptools-cython-required",
  "signature": "error: Cython does not appear to be installed. Please install Cython to compile this package.",
  "signature_zh": "错误：似乎未安装 Cython。请安装 Cython 以编译此包。",
  "regex": "error:\\ Cython\\ does\\ not\\ appear\\ to\\ be\\ installed\\.\\ Please\\ install\\ Cython\\ to\\ compile\\ this\\ package\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The package uses Cython extensions but Cython is not installed in the build environment.",
  "root_cause_type": "generic",
  "root_cause_zh": "包使用了 Cython 扩展，但构建环境中未安装 Cython。",
  "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"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Installing only the binary wheel",
      "why_fails": "If no wheel is available, pip will try to build from source.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using --no-build-isolation",
      "why_fails": "This may help but still requires Cython to be pre-installed.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Install Cython before building the package",
      "success_rate": 0.9,
      "how": "pip install cython && pip install mypackage",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a pre-compiled wheel if available",
      "success_rate": 0.8,
      "how": "pip install mypackage --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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-03-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}