python install_error ai_generated true

SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

ID: python/setuptools-deprecated-setup-py-install

Also available as: JSON · Markdown · 中文
80%Fix Rate
89%Confidence
0Evidence
2024-01-20First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.10 active
3.11 active
3.12 active

Root Cause

Invoking legacy setup.py install instead of PEP 517 build/pip.

generic

中文

使用了旧版 setup.py install,而非 PEP 517 构建/pip。

Workarounds

  1. 95% success
    python -m pip install build
    python -m build
    python -m pip install dist/*.whl
  2. 90% success
    python -m pip install .

Dead Ends

Common approaches that don't work:

  1. 60% fail

    Hides the issue but still uses deprecated path that may break in future setuptools.

  2. 70% fail

    Downgrading breaks modern packages requiring newer setuptools features.