Pip、Git 和带有自定义路径的 ssh 密钥
Pip, Git and ssh key with custom path
基于以下问题 (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
没有成功。谢谢!
好的,找到答案了:Bitbuckets 给存储库一个 ssh link,格式为
git@bitbucket.org:<user>/<repo>.git
问题出在“:”,应该换成“/”:
git@bitbucket.org/<user>/<repo>.git
基于以下问题 (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
没有成功。谢谢!
好的,找到答案了:Bitbuckets 给存储库一个 ssh link,格式为
git@bitbucket.org:<user>/<repo>.git
问题出在“:”,应该换成“/”:
git@bitbucket.org/<user>/<repo>.git