我有一个项目使用标准的 https 克隆语法有一段时间了,就在今天下午它运行良好。现在,我得到 error code 128
每次我尝试克隆时:
Obtaining myproject from git+git://myurl/myuser/myproject.git@master#egg=myproject (from -r requirements.txt (line 28))
...
fatal: unable to connect to myurl:
myurl[0: x.y.z.q]: errno=Invalid argument
ERROR: Command errored out with exit status 128: git clone -q git://myurl/myuser/myproject.git Check the logs for full command output.
我已经确认我可以使用手动克隆
git clone -q https://myurl/myuser/myproject.git
以及通过 SSH。
我在 gitea 上托管我的存储库,我没有发现任何与此相关的错误。这很奇怪。
有谁知道可能出了什么问题?我什至删除了我的 virtualenv 文件夹并重新实例化它,但没有成功,还重新启动了我的 gitea 服务器。
最佳答案
见pip install doc .如果你想使用 https
协议(protocol)然后语法是:git+https://git.example.com/MyProject#egg=MyProject
但从您的问题看来,您正在使用 git
协议(protocol)代替( git+git://git.example.com/MyProject#egg=MyProject
)。所以这是一个不同的协议(protocol)。
关于git - Pip 无法再从 https 克隆 - 错误 128,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58424348/