# WARNING: Duplicate entry in requirements file: numpy==1.21.0 (line 3) and numpy==1.22.0 (line 5)

- **ID:** `python/pip-requirements-duplicate-entry`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The same package is listed with different versions in the requirements file, causing ambiguity.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.9 | active | — | — |

## Workarounds

1. **Remove duplicate and keep only one version** (95% success)
   ```
   # Edit requirements.txt to keep only one line
numpy==1.22.0
   ```
2. **Use pip-compile to resolve dependencies automatically** (90% success)
   ```
   pip install pip-tools
pip-compile requirements.in
   ```

## Dead Ends

- **Keeping both entries** — Pip will use the last occurrence, which may not be intended. (50% fail)
- **Ignoring the warning** — May install unexpected version; conflicts later. (60% fail)
