• 欢迎光临~

pip install from github

开发技术 开发技术 2022-12-30 次浏览

报错

$ pip install git+https://github.com/pnnl/DDKS
Collecting git+https://github.com/pnnl/DDKS
  Cloning https://github.com/pnnl/DDKS to /tmp/pip-req-build-u_0xqabb
  Running command git clone --filter=blob:none --quiet https://github.com/pnnl/DDKS /tmp/pip-req-build-u_0xqabb
  fatal: unable to access 'https://github.com/pnnl/DDKS/': Empty reply from server
  error: subprocess-exited-with-error
  
  × git clone --filter=blob:none --quiet https://github.com/pnnl/DDKS /tmp/pip-req-build-u_0xqabb did not run successfully.
  │ exit code: 128
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/pnnl/DDKS /tmp/pip-req-build-u_0xqabb did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

分析报错提示可知,上述报错主要是由于git 使用 https 协议时报错。

解决方案

git config --global --unset http.proxy

参考

https://stackoverflow.com/questions/27087483/how-to-resolve-git-pull-fatal-unable-to-access-https-github-com-empty

程序员灯塔
转载请注明原文链接:pip install from github
喜欢 (0)