# ERROR: Invalid requirement: 'requests==2.31.0 --no-deps'

- **ID:** `python/pip-invalid-requirement-no-such-option`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pip parses requirement strings as PEP 508 syntax; flags like --no-deps cannot be embedded inside a requirement specifier and must be passed as separate CLI arguments.

## Version Compatibility

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

## Workarounds

1. **** (99% success)
   ```
   pip install --no-deps 'requests==2.31.0'
   ```
2. **** (98% success)
   ```
   echo 'requests==2.31.0' > req.txt
pip install --no-deps -r req.txt
   ```

## Dead Ends

- **** — Quoting does not change parsing; pip still treats the quoted text as one requirement and rejects the option token. (85% fail)
- **** — requirements.txt lines are requirement specifiers, not command lines; pip errors out on the same Invalid requirement message. (90% fail)
- **** — Backslashes are not valid in PEP 508 requirement names and produce a different parse error. (95% fail)
