# ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

- **ID:** `python/pip-vcs-dependency-git-not-found`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A requirement uses a VCS URL (e.g., `git+https://...`) but git is not installed or not on PATH in the build environment (common in slim Docker images).

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Install git in the image/container:
apt-get update && apt-get install -y git
pip install git+https://github.com/org/repo
   ```
2. **** (85% success)
   ```
   Pin to a released wheel instead of a VCS URL:
pip install org-package==1.2.3
   ```

## Dead Ends

- **** — git is still required to clone; --no-deps does not bypass the VCS fetch. (90% fail)
- **** — Trusted-host affects TLS, not the missing git binary. (90% fail)
