Pip、Git和自定义路径的ssh密钥

6
根据以下问题(Is it possible to use pip to install a package from a private github repository?),我尝试通过ssh连接pip git存储库。
我的密钥位于自定义路径。 我尝试导入它,但一直失败,最终以...结束。
Command /usr/bin/git clone -q ssh://git@bitbucket.org:<user>/<repo>.git /tmp/pip-rYrupA-build failed with error code 128 in None

我尝试使用

pip install git+ssh://git@bitbucket.org:<user>/<repo>.git -i /path/to/id_rsa 

没有成功。谢谢!

1个回答

5
好的,我来翻译一下。这是一个关于IT技术的问题。Bitbucket提供了一个格式为ssh的存储库链接。
git@bitbucket.org:<user>/<repo>.git

问题出在“:”这个符号上,应该用“/”来替换它:
git@bitbucket.org/<user>/<repo>.git

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接