# SetuptoolsDeprecationWarning: setup.py install 已弃用。请使用 build 和 pip 等标准化工具。

- **ID:** `python/setuptools-deprecated-setup-py-install`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

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

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   python -m pip install build
python -m build
python -m pip install dist/*.whl
   ```
2. **** (90% 成功率)
   ```
   python -m pip install .
   ```

## 无效尝试

- **** — Hides the issue but still uses deprecated path that may break in future setuptools. (60% 失败率)
- **** — Downgrading breaks modern packages requiring newer setuptools features. (70% 失败率)
