python
install_error
ai_generated
true
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%Fix Rate
87%Confidence
0Evidence
2024-10-19First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
Root Cause
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.
generic中文
包的 pyproject.toml 声明了构建后端(如 hatchling),但配置的索引(通常是私有镜像)中不存在该后端。
Workarounds
-
90% success
Add PyPI as a secondary index: `pip install --extra-index-url https://pypi.org/simple <pkg>`.
-
88% success
Pre-install the build backend and disable isolation: `pip install hatchling && pip install --no-build-isolation <pkg>`.
Dead Ends
Common approaches that don't work:
-
70% fail
Uses the current env's build backend; if hatchling is not installed there either, the same error appears.
-
90% fail
pip cannot conjure a package the index does not serve.