# 错误：禁用构建隔离时无法导入 'setuptools.build_meta'，因为当前环境中未安装 setuptools。

- **ID:** `python/pip-build-isolation-conflict`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

使用 `--no-build-isolation` 要求构建后端（setuptools、wheel 等）已安装在当前活动环境中。

## 版本兼容性

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

## 解决方案

1. **** (90% 成功率)
   ```
   pip install --upgrade setuptools wheel && pip install --no-build-isolation <package>
   ```
2. **** (95% 成功率)
   ```
   pip install <package>  # drop --no-build-isolation
   ```

## 无效尝试

- **** — pip is separate from the build backend; reinstalling it does not add setuptools. (90% 失败率)
- **** — The same missing backend error recurs deterministically. (95% 失败率)
- **** — Force-reinstall affects the target package, not build-time imports. (90% 失败率)
