2015-05-18 82 views
4

基於以下問題(Is it possible to use pip to install a package from a private github repository?),我嘗試通過ssh連接到pip git存儲庫。帶自定義路徑的Pip,Git和ssh密鑰

我的鑰匙在自定義路徑中。我嘗試導入它沒有成功,總是

Command /usr/bin/git clone -q ssh://[email protected]:<user>/<repo>.git /tmp/pip-rYrupA-build failed with error code 128 in None 

結束我試圖登錄與

pip install git+ssh://[email protected]:<user>/<repo>.git -i /path/to/id_rsa 

沒有成功。謝謝!

回答

3

好了,找到了答案:Bitbuckets給出了一個ssh連接到格式化爲

[email protected]:<user>/<repo>.git 

問題庫是由於「:」這應該由「/」代替:

[email protected]/<user>/<repo>.git 
+0

謝謝。有同樣的問題。 – Jacinto

+0

很高興幫助:) – Raphael