python
install_error
ai_generated
true
错误:找不到满足 hatchling 要求的版本(可用版本:无) 错误:未找到匹配 hatchling 的发行版
ERROR: Could not find a version that satisfies the requirement hatchling (from versions: none) ERROR: No matching distribution found for hatchling
ID: python/pip-install-requires-build-backend-missing
80%修复率
87%置信度
0证据数
2024-10-19首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
根因分析
包的 pyproject.toml 声明了构建后端(如 hatchling),但配置的索引(通常是私有镜像)中不存在该后端。
English
The package's pyproject.toml declares a build backend (e.g., hatchling) that is not available on the configured index, often because a private mirror lacks it.
解决方案
-
90% 成功率
Add PyPI as a secondary index: `pip install --extra-index-url https://pypi.org/simple <pkg>`.
-
88% 成功率
Pre-install the build backend and disable isolation: `pip install hatchling && pip install --no-build-isolation <pkg>`.
无效尝试
常见但无效的做法:
-
70% 失败
Uses the current env's build backend; if hatchling is not installed there either, the same error appears.
-
90% 失败
pip cannot conjure a package the index does not serve.