# ERROR: Could not detect requirement name for 'git+https://github.com/org/repo.git@main', please specify one with #egg=your_package_name

- **ID:** `python/pip-git-url-without-egg-fragment`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pip cannot infer the distribution name from a raw VCS URL without the legacy `#egg=` fragment or a PEP 508 name prefix.

## 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)
   ```
   pip install 'your-package @ git+https://github.com/org/repo.git@main'
   ```
2. **** (90% success)
   ```
   pip install 'git+https://github.com/org/repo.git@main#egg=your-package'
   ```

## Dead Ends

- **** — Trusted-host is unrelated to name detection. (95% fail)
- **** — pip still needs a name to record in metadata. (90% fail)
- **** — Works but loses VCS provenance and complicates updates; not a general fix for requirements files. (40% fail)
