使用pip安装私有git回购的问题
我正在尝试从我可以使用pip访问的私有存储库安装一个包 我可以直接克隆它 但是,当我尝试通过pip安装它时,出现以下错误:使用pip安装私有git回购的问题,git,github,ssh,pip,Git,Github,Ssh,Pip,我正在尝试从我可以使用pip访问的私有存储库安装一个包 我可以直接克隆它 但是,当我尝试通过pip安装它时,出现以下错误: ERROR: Command errored out with exit status 128: command: git clone -q 'ssh://****@github.com/my_projects/ib_client' /tmp/pip-req- build-ivumdv23 cwd: None Complete output (7 lin
ERROR: Command errored out with exit status 128:
command: git clone -q 'ssh://****@github.com/my_projects/ib_client' /tmp/pip-req-
build-ivumdv23
cwd: None
Complete output (7 lines):
key_load_public: invalid format
Warning: Permanently added the ECDSA host key for IP address 'AA.BB.CC.DD' to the list
of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
----------------------------------------
ERROR: Command errored out with exit status 128: git clone -q
'ssh://****@github.com/my_projects/ib_client' /tmp/pip-req-build-ivumdv23 Check
the logs for full command output.
The command '/bin/sh -c python3 -m pip install --upgrade pip && python3 -m pip install -q -r ${BASE_DIR}/requirements.txt && python3 -m pip install -q -r ${BASE_DIR}/healthchecks/requirements.txt' returned a non-zero code: 1
make: *** [build] Error 1
关于这一点,我已经浏览了帖子:,和,但我仍然不知道如何解决这个问题。看起来您有一个ssh问题(让我们添加“ssh”标记)。这不是Python/pip问题,也不是git问题。首先,了解如何正确配置ssh客户机以可靠地连接到git存储库的主机
sshgit@github.com
@sinoroc感谢您的回复。我已经在~/.ssh/known_hosts中添加了这个IP和主机名,并重新启动了ssh守护进程。但问题仍然存在。@Joy您需要解决key\u load\u public:invalid format
问题。我认为这与已知的主机无关,与SSH守护进程无关(您需要修复SSH客户端的配置,而不是SSH服务器)。检查您的公私密钥对是否正确。您通常能够连接到ssh吗git@github.com
?您通常能够克隆这个私有git存储库吗?