# 错误：命令以退出状态 128 失败：git clone ...

- **ID:** `python/pip-vcs-install-failed`
- **领域:** python
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

由于身份验证、网络或仓库不存在，Git 仓库克隆失败。

## 版本兼容性

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

## 解决方案

1. **Ensure correct URL and credentials** (90% 成功率)
   ```
   pip install git+https://user:token@github.com/user/repo.git
   ```
2. **Clone manually and install** (80% 成功率)
   ```
   git clone https://github.com/user/repo.git && cd repo && pip install .
   ```

## 无效尝试

- **Using HTTPS instead of SSH** — May still have auth issues. (50% 失败率)
- **Checking if git is installed** — Git is usually present. (20% 失败率)
