# SetuptoolsDeprecationWarning: setup.py install 已弃用。请使用 build 和 pip 以及其他基于标准的工具。

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

## 根因

直接运行 python setup.py install 已弃用，推荐使用 PEP 517 构建前端如 pip 和 build。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   pip install .  # builds and installs using PEP 517
   ```
2. **** (92% 成功率)
   ```
   pip install build; python -m build
   ```

## 无效尝试

- **** — Hides the deprecation but does not fix the underlying issue; future removal will break the workflow. (70% 失败率)
- **** — Avoids the warning temporarily but locks you out of security fixes and new features. (60% 失败率)
