# 错误：命令以退出状态 128 错误退出：git clone -q https://github.com/user/repo.git /tmp/pip-req-build-xxx。请查看日志以获取完整命令输出。

- **ID:** `python/pip-git-dependency-error`
- **领域:** python
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

Git 仓库 URL 无效、仓库不存在或需要身份验证。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   git clone https://github.com/user/repo.git  # test manually
   ```
2. **** (90% 成功率)
   ```
   pip install git+https://github.com/user/repo.git@v1.0
   ```

## 无效尝试

- **** — Caching is not the issue; the clone itself fails. (80% 失败率)
- **** — The git dependency is the package itself; skipping dependencies does not help. (70% 失败率)
