{
  "id": "python/pip-build-deps-conflict-cython-numpy",
  "signature": "ERROR: Cannot install numpy==1.26.4 and Cython>=3.0 because these package versions have conflicting dependencies.\nThe conflict is caused by:\n    The user requested numpy==1.26.4\n    Cython 3.0.10 depends on numpy>=2.0",
  "signature_zh": "错误：无法安装 numpy==1.26.4 和 Cython>=3.0，因为这些包版本的依赖项存在冲突。\n冲突由以下原因引起：\n    用户请求 numpy==1.26.4\n    Cython 3.0.10 依赖于 numpy>=2.0",
  "regex": "ERROR:\\ Cannot\\ install\\ numpy==1\\.26\\.4\\ and\\ Cython>=3\\.0\\ because\\ these\\ package\\ versions\\ have\\ conflicting\\ dependencies\\.\\\nThe\\ conflict\\ is\\ caused\\ by:\\\n\\ \\ \\ \\ The\\ user\\ requested\\ numpy==1\\.26\\.4\\\n\\ \\ \\ \\ Cython\\ 3\\.0\\.10\\ depends\\ on\\ numpy>=2\\.0",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Build-time dependencies and runtime pins were mixed in the same requirements file, creating an unsatisfiable graph.",
  "root_cause_type": "generic",
  "root_cause_zh": "构建时依赖和运行时固定版本被混在同一个 requirements 文件中，产生了无法满足的依赖图。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Skips dependency installation entirely, leaving the environment broken at runtime.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Legacy resolver may install an inconsistent set silently, causing runtime errors.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "May pull numpy 2.x, incompatible with other pinned packages in the project.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.92,
      "how": "[build-system]\nrequires = [\"setuptools>=68\", \"wheel\", \"Cython>=3.0\", \"numpy>=2.0\"]\nbuild-backend = \"setuptools.build_meta\"\n# then\npip install .",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "echo 'numpy==1.26.4' > constraints.txt\npip install -c constraints.txt Cython>=3.0",
      "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": "partial",
  "first_seen": "2024-10-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}