Pip无法再从https克隆-错误128 [英] Pip cannot clone from https anymore - error 128
问题描述
一段时间以来,我有一个使用标准https克隆语法的项目,而今天下午它运行良好.现在,每次尝试克隆时,我都会得到error code 128
:
I have had a project working with the standard https cloning syntax for a while, and just this afternoon it was working fine. Now, I get error code 128
every time I try to clone:
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上,但没有发现与此相关的任何错误.这很奇怪.
I am hosting my repositories on gitea, and I haven't found any errors related to this. This is very strange.
有人知道会出什么问题吗?我什至删除了我的virtualenv文件夹,然后重新实例化它,但没有运气,还重新启动了gitea服务器.
Does anyone know what could be going wrong? I even deleted my virtualenv folder and re-instantiated it with no luck, as well as restart my gitea server.
推荐答案
See the pip install doc. If you want to use the https
protocol then the syntax is:
git+https://git.example.com/MyProject#egg=MyProject
但是从您的问题来看,您似乎正在使用git
协议(git+git://git.example.com/MyProject#egg=MyProject
).所以这是一个不同的协议.
But from your question it looks like you are using the git
protocol instead (git+git://git.example.com/MyProject#egg=MyProject
). So this is a different protocol.
这篇关于Pip无法再从https克隆-错误128的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!