Based on the following question (Is it possible to use pip to install a package from a private github repository?), I try to connect to pip a git repository via ssh.
My key is in a custom path. I try to import it without success, always ending with
Command /usr/bin/git clone -q ssh://[email protected]:<user>/<repo>.git /tmp/pip-rYrupA-build failed with error code 128 in None
I tried to log with
pip install git+ssh://[email protected]:<user>/<repo>.git -i /path/to/id_rsa
without success. Thanks!
Ok, found the answer: Bitbuckets gives a ssh link to the repository formatted as
[email protected]:<user>/<repo>.git
The problem is due to the ":", which should be replaced by "/":
[email protected]/<user>/<repo>.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With