您可以使用
git+sshURI方案,但是 必须 设置用户名。注意
git@URI中的部分:
pip install git+ssh://git@github.com/echweb/echweb-utils.git
另请参阅有关部署密钥。
PS:在我的安装中,“ git + ssh” URI方案仅适用于“可编辑”的要求:
pip install -e URI#egg=EggName
切记 :在命令中使用遥控器的地址之前
:,请将要
git remote -v打印的
/字符更改为字符
pip:
$ git remote -vorigin git@github.com:echweb/echweb-utils.git (fetch)# ^ change this to a '/' character
如果您忘记了,则会收到此错误:
ssh: Could not resolve hostname github.com:echweb: nodename nor servname provided, or not known



