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
80%Fix Rate
89%Confidence
0Evidence
2024-01-20First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 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
-
95% success
python -m pip install build python -m build python -m pip install dist/*.whl
-
90% success
python -m pip install .
Dead Ends
Common approaches that don't work:
-
60% fail
Hides the issue but still uses deprecated path that may break in future setuptools.
-
70% fail
Downgrading breaks modern packages requiring newer setuptools features.