{
  "id": "python/setuptools-command-not-found-egg-info",
  "signature": "KeyError: 'egg_info'",
  "signature_zh": "KeyError: 'egg_info'",
  "regex": "KeyError:\\ 'egg_info'",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "setuptools cannot find the 'egg_info' command, typically because the package's setup.py is malformed or setuptools is not properly installed. This can occur when using a minimal Python installation.",
  "root_cause_type": "generic",
  "root_cause_zh": "setuptools 找不到 'egg_info' 命令，通常是因为包的 setup.py 格式错误或 setuptools 未正确安装。在使用最小化 Python 安装时可能发生。",
  "versions": [
    {
      "version": "3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If egg_info is missing, develop will also fail with the same error.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Reinstalling doesn't fix setuptools installation issues.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Ensure setuptools is installed and up to date: pip install --upgrade setuptools.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use a virtual environment with a full Python installation: python -m venv venv && source venv/bin/activate && pip install setuptools.",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-02-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}