pip install from github
报错
$ 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