{
  "id": "python/pip-egg-info-missing-requires",
  "signature": "error: invalid command 'egg_info'",
  "signature_zh": "错误：无效的命令 'egg_info'",
  "regex": "error:\\ invalid\\ command\\ 'egg_info'",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The setuptools package is not installed or is outdated, causing the 'egg_info' command to be unavailable during package build.",
  "root_cause_type": "generic",
  "root_cause_zh": "setuptools 未安装或版本过旧，导致构建包时 'egg_info' 命令不可用。",
  "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Reinstalling pip using 'pip install --upgrade pip'",
      "why_fails": "Pip upgrade does not address missing setuptools.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Manually creating an egg-info directory",
      "why_fails": "The directory structure is incomplete and doesn't fix the underlying command absence.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Install or upgrade setuptools explicitly",
      "success_rate": 0.95,
      "how": "pip install --upgrade setuptools",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use python -m ensurepip to bootstrap",
      "success_rate": 0.8,
      "how": "python -m ensurepip --upgrade",
      "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": "true",
  "first_seen": "2024-03-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}