python
install_error
ai_generated
true
ERROR: Could not build wheels for foo, which is required to install pyproject.toml-based projects
ID: python/pip-build-isolation-missing-build-dependency
80%Fix Rate
86%Confidence
0Evidence
2024-04-05First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
Root Cause
Build backend requires tools (e.g., Cython, numpy) not declared in build-system.requires, and build isolation hides them.
generic中文
构建后端需要未在 build-system.requires 中声明的工具(如 Cython、numpy),而构建隔离隐藏了它们。
Workarounds
-
85% success
pip install -U pip setuptools wheel cython numpy pip install foo
-
80% success
pip install --only-binary=:all: foo
Dead Ends
Common approaches that don't work:
-
55% fail
Requires all build tools pre-installed globally; often fails with missing headers or wrong versions.
-
90% fail
Transient network issues aside, missing build deps won't resolve by retrying.