{
  "id": "python/pip-egg-info-failed-invalid-syntax",
  "signature": "error: subprocess-exited-with-error\n× python setup.py egg_info did not run successfully.\n│ exit code: 1\n╰─> [8 lines of output]\n  File \"setup.py\", line 5\n    print \"Hello\"\n          ^\nSyntaxError: Missing parentheses in call to 'print'",
  "signature_zh": "错误：子进程以错误退出\n× python setup.py egg_info 未成功运行。\n│ 退出码：1\n╰─> [8 行输出]\n  文件 \"setup.py\"，第 5 行\n    print \"Hello\"\n          ^\nSyntaxError：调用 'print' 时缺少括号",
  "regex": "error:\\ subprocess\\-exited\\-with\\-error\\\n×\\ python\\ setup\\.py\\ egg_info\\ did\\ not\\ run\\ successfully\\.\\\n│\\ exit\\ code:\\ 1\\\n╰─>\\ \\[8\\ lines\\ of\\ output\\]\\\n\\ \\ File\\ \"setup\\.py\",\\ line\\ 5\\\n\\ \\ \\ \\ print\\ \"Hello\"\\\n\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\^\\\nSyntaxError:\\ Missing\\ parentheses\\ in\\ call\\ to\\ 'print'",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The package's setup.py uses Python 2 syntax, incompatible with Python 3.",
  "root_cause_type": "generic",
  "root_cause_zh": "包的 setup.py 使用 Python 2 语法，与 Python 3 不兼容。",
  "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": "",
      "why_fails": "Python 2 is EOL and may not be available.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "May be overwritten on next install; not sustainable.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Find a newer version of the package that supports Python 3.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.7,
      "how": "Use `2to3` to convert setup.py, then install with `--no-build-isolation`.",
      "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-01-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}