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

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

## Root Cause

The specified requirements file does not exist in the current working directory.

## Version Compatibility

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

## Workarounds

1. **Check the current directory and create the file if needed** (95% success)
   ```
   ls && echo 'mypackage' > requirements.txt && pip install -r requirements.txt
   ```
2. **Specify the full path to the requirements file** (90% success)
   ```
   pip install -r /path/to/requirements.txt
   ```

## Dead Ends

- **Creating an empty requirements.txt file** — An empty file will install nothing, but the error is about a missing file. (80% fail)
- **Using a different file name like require.txt** — pip expects the exact filename; it won't auto-detect. (90% fail)
