{
  "id": "python/pip-install-error-command-errored-out-with-exit-status-1",
  "signature": "error: subprocess-exited-with-error\n\n× python setup.py egg_info did not run successfully.\n│ exit code: 1\n╰─> [8 lines of output]\n    Traceback (most recent call last):\n      File \"<string>\", line 2, in <module>\n        from setuptools import setup\n    ModuleNotFoundError: No module named 'setuptools'",
  "signature_zh": "错误：子进程退出并报错\n\n× python setup.py egg_info 未成功运行。\n│ 退出代码：1\n╰─> [8 行输出]\n    Traceback (最近一次调用)：\n      File \"<string>\", 第 2 行, 在 <module>\n        from setuptools import setup\n    ModuleNotFoundError: 没有名为 'setuptools' 的模块",
  "regex": "error:\\ subprocess\\-exited\\-with\\-error\\\n\\\n×\\ python\\ setup\\.py\\ egg_info\\ did\\ not\\ run\\ successfully\\.\\\n│\\ exit\\ code:\\ 1\\\n╰─>\\ \\[8\\ lines\\ of\\ output\\]\\\n\\ \\ \\ \\ Traceback\\ \\(most\\ recent\\ call\\ last\\):\\\n\\ \\ \\ \\ \\ \\ File\\ \"<string>\",\\ line\\ 2,\\ in\\ <module>\\\n\\ \\ \\ \\ \\ \\ \\ \\ from\\ setuptools\\ import\\ setup\\\n\\ \\ \\ \\ ModuleNotFoundError:\\ No\\ module\\ named\\ 'setuptools'",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The build process for the package failed because setuptools is not installed in the build environment, often due to a missing build dependency.",
  "root_cause_type": "generic",
  "root_cause_zh": "包的构建过程失败，因为构建环境中未安装 setuptools，通常是由于缺少构建依赖。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "May not affect isolated build environments used by pip.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This can work if setuptools is already installed, but often fails if it's not.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The missing dependency persists.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install --upgrade setuptools wheel",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install setuptools wheel && pip install --no-build-isolation package",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.75,
      "how": "python -m pip install --upgrade pip",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}