python
install_error
ai_generated
partial
error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output.
ID: python/pip-metadata-generation-failed-setup-py
80%Fix Rate
86%Confidence
0Evidence
2024-09-03First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
Root Cause
The package's setup.py/pyproject.toml raises during metadata generation, often due to missing build deps or incompatible setuptools.
generic中文
包的 setup.py/pyproject.toml 在生成元数据时抛出异常,通常由于缺少构建依赖或不兼容的 setuptools。
Workarounds
-
90% success
pip install -vvv foo
-
85% success
pip install -U pip setuptools wheel pip install foo
Dead Ends
Common approaches that don't work:
-
80% fail
Cache is not the root cause; metadata generation still fails.
-
70% fail
Pre-release may have the same broken metadata.