# 错误：似乎未安装 Cython。请安装 Cython 以编译此包。

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

## 根因

包使用了 Cython 扩展，但构建环境中未安装 Cython。

## 版本兼容性

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

## 解决方案

1. **Install Cython before building the package** (90% 成功率)
   ```
   pip install cython && pip install mypackage
   ```
2. **Use a pre-compiled wheel if available** (80% 成功率)
   ```
   pip install mypackage --only-binary :all:
   ```

## 无效尝试

- **Installing only the binary wheel** — If no wheel is available, pip will try to build from source. (70% 失败率)
- **Using --no-build-isolation** — This may help but still requires Cython to be pre-installed. (60% 失败率)
