# error: [Errno 2] No such file or directory: 'setup.py'

- **ID:** `python/pip-egg-info-build-failure`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Running build/install from the wrong directory or a project using pyproject.toml-only layout.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   cd /path/to/project
python -m pip install .
   ```
2. **** (90% success)
   ```
   python -m build --sdist --wheel
   ```

## Dead Ends

- **** — Breaks PEP 517 builds and confuses tooling. (75% fail)
- **** — Still wrong directory; file remains missing. (85% fail)
