python
install_error
ai_generated
true
SetuptoolsDeprecationWarning: setup.py install 已弃用。请使用 build 和 pip 等标准化工具。
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
ID: python/setuptools-deprecated-setup-py-install
80%修复率
89%置信度
0证据数
2024-01-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
根因分析
使用了旧版 setup.py install,而非 PEP 517 构建/pip。
English
Invoking legacy setup.py install instead of PEP 517 build/pip.
解决方案
-
95% 成功率
python -m pip install build python -m build python -m pip install dist/*.whl
-
90% 成功率
python -m pip install .
无效尝试
常见但无效的做法:
-
60% 失败
Hides the issue but still uses deprecated path that may break in future setuptools.
-
70% 失败
Downgrading breaks modern packages requiring newer setuptools features.