# 错误：无法识别的选项 --use-2to3
用法：setup.py [global_opts] cmd1 [cmd1_opts] ...
setup.py: 错误：无此选项：--use-2to3

- **ID:** `python/setuptools-use-2to3-removed`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

setuptools 58+ 移除了 2to3 构建支持。setup.py 中带有 `use_2to3=True` 的包现在会失败，因为该选项已不存在。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.7 | active | — | — |
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |

## 解决方案

1. **** (80% 成功率)
   ```
   pip install 'setuptools<58' wheel
pip install --no-build-isolation <package>
   ```
2. **** (75% 成功率)
   ```
   pip install --only-binary=:all: <package>
   ```

## 无效尝试

- **** — Many legacy packages are unmaintained; the latest release still contains use_2to3=True. (70% 失败率)
- **** — The 2to3 tool is part of the stdlib; installing a package named 2to3 does not restore setuptools' removed option. (95% 失败率)
