git - Pip 无法再从 https 克隆 - 错误 128

标签 git pip gitea

我有一个项目使用标准的 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/

相关文章:

git - 如果远程跟踪引用不再存在,则删除本地 Git 分支

android - 在 Android Studio 项目中包含现有代码的正确方法?

php - 我如何在学校使用我的 Git

python - "TypeError: unsupported operand type(s) for -=: ' 在 PIP 升级期间重试 ' and ' int ' "

git p4同步操作失败

python - 无法安装编解码器或升级 pip

python - Jupyter notebook 无法识别 venv 中的包

nginx - Gitea 和 Nginx 配置

jenkins - 如何连接 Jenkins 和 Gieta