# ERROR: Invalid requirement: 'git+https://github.com/org/repo.git#egg=my-pkg&subdirectory=src'

- **ID:** `python/pip-egg-fragment-not-supported`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The egg fragment contains multiple '&'-joined parameters; pip's requirement parser accepts only a single #egg=name or #subdirectory= in the URL fragment.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   # requirements.txt
git+https://github.com/org/repo.git@v1.2.3#subdirectory=src
# or
git+https://github.com/org/repo.git@v1.2.3#egg=my-pkg
   ```
2. **** (85% success)
   ```
   pip install 'git+https://github.com/org/repo.git@v1.2.3' --config-settings editable_mode=compat
# or clone + install
pip install ./repo/src
   ```

## Dead Ends

- **** — Quotes become part of the URL and are still parsed as an invalid requirement. (90% fail)
- **** — The parser still sees two fragment parameters after decoding and rejects the requirement. (80% fail)
