{
  "id": "python/pip-subprocess-exited-with-error-metadata",
  "signature": "error: subprocess-exited-with-error\n\n× python setup.py egg_info did not run successfully.\n│ exit code: 1\n╰─> [12 lines of output]\n    ModuleNotFoundError: No module named 'Cython'\n\nnote: This error originates from a subprocess, and is likely not a problem with pip.\nERROR: Failed building wheel for somepkg",
  "signature_zh": "错误：子进程以错误退出\n\n× python setup.py egg_info 未能成功运行。\n│ 退出码：1\n╰─> [12 行输出]\n    ModuleNotFoundError: No module named 'Cython'\n\n注意：此错误源自子进程，很可能不是 pip 的问题。\n错误：为 somepkg 构建 wheel 失败",
  "regex": "error:\\ subprocess\\-exited\\-with\\-error\\\n\\\n×\\ python\\ setup\\.py\\ egg_info\\ did\\ not\\ run\\ successfully\\.\\\n│\\ exit\\ code:\\ 1\\\n╰─>\\ \\[12\\ lines\\ of\\ output\\]\\\n\\ \\ \\ \\ ModuleNotFoundError:\\ No\\ module\\ named\\ 'Cython'\\\n\\\nnote:\\ This\\ error\\ originates\\ from\\ a\\ subprocess,\\ and\\ is\\ likely\\ not\\ a\\ problem\\ with\\ pip\\.\\\nERROR:\\ Failed\\ building\\ wheel\\ for\\ somepkg",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "A source distribution's build step requires build-time dependencies (Cython, numpy headers, etc.) that are not declared in pyproject.toml [build-system].requires and not present in the current environment.",
  "root_cause_type": "generic",
  "root_cause_zh": "源码分发包的构建步骤需要构建时依赖（Cython、numpy 头文件等），这些依赖未在 pyproject.toml [build-system].requires 中声明，且当前环境中也不存在。",
  "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": "",
      "why_fails": "The missing module is Cython, not pip/setuptools; upgrading build tools does not install Cython.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Disabling build isolation uses the current env, which also lacks Cython, so the same ModuleNotFoundError occurs.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip install Cython numpy\npip install somepkg",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install --only-binary=:all: somepkg\n# or specify a wheel index\npip install --index-url https://download.pytorch.org/whl/cpu somepkg",
      "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-07-04",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}