{
  "id": "python/setuptools-version-mismatch",
  "signature": "RuntimeError: Setuptools version 58.0.0 is too old to use the pyproject.toml build system. Minimum required is 60.0.0.",
  "signature_zh": "RuntimeError: Setuptools 版本 58.0.0 太旧，无法使用 pyproject.toml 构建系统。最低要求是 60.0.0。",
  "regex": "RuntimeError:\\ Setuptools\\ version\\ 58\\.0\\.0\\ is\\ too\\ old\\ to\\ use\\ the\\ pyproject\\.toml\\ build\\ system\\.\\ Minimum\\ required\\ is\\ 60\\.0\\.0\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The installed setuptools version does not support the build system defined in pyproject.toml.",
  "root_cause_type": "generic",
  "root_cause_zh": "安装的 setuptools 版本不支持 pyproject.toml 中定义的构建系统。",
  "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": "Downgrading pip",
      "why_fails": "The issue is with setuptools, not pip; downgrading pip does not help.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Removing pyproject.toml",
      "why_fails": "setuptools may fall back to setup.py, but modern packages rely on pyproject.toml.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Upgrade setuptools to a compatible version",
      "success_rate": 0.95,
      "how": "pip install --upgrade setuptools>=60.0.0",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a virtual environment with a newer Python version",
      "success_rate": 0.9,
      "how": "python3.11 -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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}