{
  "id": "python/pip-legacy-setup-py-install-deprecated",
  "signature": "DEPRECATION: Legacy setup.py install is deprecated. pip 24.0 will enforce this behaviour change. Please use pip install . instead.",
  "signature_zh": "弃用警告：旧式 setup.py install 已弃用。pip 24.0 将强制执行此行为变更。请改用 pip install .",
  "regex": "DEPRECATION:\\ Legacy\\ setup\\.py\\ install\\ is\\ deprecated\\.\\ pip\\ 24\\.0\\ will\\ enforce\\ this\\ behaviour\\ change\\.\\ Please\\ use\\ pip\\ install\\ \\.\\ instead\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "A package or script invokes the legacy `setup.py install` command directly, which pip deprecated in favor of PEP 517 build backends.",
  "root_cause_type": "generic",
  "root_cause_zh": "某个包或脚本直接调用了旧式 `setup.py install` 命令，而 pip 已弃用它，转而采用 PEP 517 构建后端。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Hides the warning but does not change the deprecated behavior; future pip versions will error.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Temporary and insecure; breaks other tooling expecting modern pip.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Does not change the deprecated code path being executed.",
      "fail_rate": 0.82,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Add a pyproject.toml with [build-system] requires = ['setuptools>=61', 'wheel'] and build-backend = 'setuptools.build_meta'. Then install with pip install .",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "In CI, use pip<24 with a TODO to migrate; track the offending package and open an upstream issue.",
      "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": "partial",
  "first_seen": "2024-01-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}