{
  "id": "python/pip-legacy-setup-py-install-failed",
  "signature": "error: subprocess-exited-with-error\n\n× python setup.py egg_info did not run successfully.",
  "signature_zh": "错误：子进程退出并报错\n\n× python setup.py egg_info 未能成功运行。",
  "regex": "error:\\ subprocess\\-exited\\-with\\-error\\\n\\\n×\\ python\\ setup\\.py\\ egg_info\\ did\\ not\\ run\\ successfully\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "pip attempts to build a source distribution using the deprecated setup.py egg_info path, but the package's setup.py relies on outdated setuptools APIs or a missing build dependency.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 尝试使用已弃用的 setup.py egg_info 路径构建源码分发包，但该包的 setup.py 依赖于过时的 setuptools API 或缺少构建依赖。",
  "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 legacy resolver only changes dependency resolution, not the build backend; setup.py still fails.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Editing third-party source inside site-packages breaks package integrity and is overwritten on reinstall.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Older pip still invokes the same setup.py path and may lack modern PEP 517 fallbacks.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.75,
      "how": "pip install --upgrade pip setuptools wheel && pip install --no-cache-dir <package>",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.65,
      "how": "pip install --no-build-isolation --upgrade setuptools && pip install <package>",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install --only-binary=:all: <package>",
      "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-03-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}