# 错误：命令以退出状态128出错：git clone ...（致命：身份验证失败）

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

## 根因

pip无法验证到私有VCS仓库；缺少凭据或SSH密钥。

## 版本兼容性

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

## 解决方案

1. **Use SSH URL with SSH keys configured** (90% 成功率)
   ```
   pip install git+ssh://git@github.com/user/private-repo.git
   ```
2. **Use personal access token in URL** (85% 成功率)
   ```
   pip install git+https://<token>@github.com/user/private-repo.git
   ```

## 无效尝试

- **Using --no-cache-dir** — Cache is not the issue; authentication is required. (90% 失败率)
- **Removing the package from requirements** — Package is needed; removal breaks functionality. (60% 失败率)
