{
  "id": "python/pip-setuptools-deprecation-setup-py-install",
  "signature": "SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.",
  "signature_zh": "SetuptoolsDeprecationWarning：setup.py install 已弃用。请使用 build、pip 和其他基于标准的工具。",
  "regex": "SetuptoolsDeprecationWarning:\\ setup\\.py\\ install\\ is\\ deprecated\\.\\ Use\\ build\\ and\\ pip\\ and\\ other\\ standards\\-based\\ tools\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "setuptools 58+ deprecated the direct `setup.py install` path in favor of PEP 517 build backends; running it still works but emits a deprecation warning and bypasses wheel caching.",
  "root_cause_type": "generic",
  "root_cause_zh": "setuptools 58+ 弃用了直接 `setup.py install` 路径，改用 PEP 517 构建后端；运行它仍可用，但会发出弃用警告并绕过 wheel 缓存。",
  "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": "Only hides the warning; the deprecated code path still runs and will be removed in a future setuptools release.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Pins an old setuptools that lacks modern PEP 517/518 support and breaks other packages expecting current metadata APIs.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.96,
      "how": "Replace `python setup.py install` with `python -m pip install .` or build a wheel first: `python -m pip install build && python -m build`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.94,
      "how": "For editable dev installs use `python -m pip install -e .` instead of `python setup.py develop`.",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}