报错如下:
Collecting git+https://github.com/haotian-liu/LLaVA.git
Cloning https://github.com/haotian-liu/LLaVA.git to /tmp/pip-req-build-360q6tt1
Running command git clone --filter=blob:none --quiet https://github.com/haotian-liu/LLaVA.git /tmp/pip-req-build-360q6tt1
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
有可能是由于仓库非常大,导致的克隆过程中断。解决:使用--depth参数进行浅克隆,只克隆最近的一次提交:
git clone https://github.com/haotian-liu/LLaVA.git --depth 1