python
config_error
ai_generated
true
error: [Errno 2] No such file or directory: 'setup.py'
ID: python/pip-egg-info-build-failure
80%Fix Rate
85%Confidence
0Evidence
2025-03-20First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.x | active | — | — | — |
Root Cause
Running build/install from the wrong directory or a project using pyproject.toml-only layout.
generic中文
在错误的目录下运行构建/安装,或项目仅使用 pyproject.toml 布局。
Workarounds
-
95% success
cd /path/to/project python -m pip install .
-
90% success
python -m build --sdist --wheel
Dead Ends
Common approaches that don't work:
-
75% fail
Breaks PEP 517 builds and confuses tooling.
-
85% fail
Still wrong directory; file remains missing.