# ERROR: Command errored out with exit status 128: git clone -q https://github.com/foo/bar.git /tmp/pip-install-... Check the logs for full command output.

- **ID:** `python/pip-install-from-git-failed`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pip failed to clone a Git repository, often due to network issues, missing git, or authentication requirements.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   Ensure git is installed and network accessible: `git --version` and `git clone <url>` manually.
   ```
2. **** (80% success)
   ```
   Use SSH URL or provide credentials: `pip install git+ssh://git@github.com/foo/bar.git`.
   ```

## Dead Ends

- **** — If git is missing or network blocked, retries fail. (80% fail)
- **** — Does not fix the clone failure. (90% fail)
