Pip, Git and ssh key with custom path

Based on the following question ( Can I use pip to install a package from a private github repository? ), I am trying to connect to a pip a git repository via ssh.

My key is in a custom path. I try to import it without success, always ending

Command /usr/bin/git clone -q ssh://git@bitbucket.org:<user>/<repo>.git /tmp/pip-rYrupA-build failed with error code 128 in None

I tried to log in with

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

without success. Thank!

+4
source share
1 answer

Ok, I found the answer: Bitbuckets gives an ssh link to a repository formatted as

git@bitbucket.org:<user>/<repo>.git

The problem is with ":", which should be replaced with "/":

git@bitbucket.org/<user>/<repo>.git
+3
source

All Articles