# ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

- **ID:** `python/pip-req-file-not-found`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pip is invoked from a directory that does not contain the requirements file, or the filename is misspelled (e.g. requirements-dev.txt).

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (98% success)
   ```
   pwd
ls requirements*.txt
pip install -r "$(pwd)/requirements.txt"
   ```
2. **** (90% success)
   ```
   pip freeze > requirements.txt
pip install -r requirements.txt
   ```

## Dead Ends

- **** — The error is a missing file, not a pip bug; upgrading does not create the file. (95% fail)
- **** — --no-cache-dir affects the HTTP cache, not file lookup; the same FileNotFoundError occurs. (95% fail)
