Could not determine ref type of version: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
时间: 2023-10-26 19:59:05 浏览: 276
回答: 根据提供的引用信息,这个错误是在运行一个叫做“webui-user.bat”的文件时出现的。错误提示表明程序试图安装名为“open_clip”的包,但是安装失败了。具体的错误信息如下:Running command git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’ error: RPC failed; curl 18 HTTP/2 stream 3 was not closed cleanly before end of the underlying stream fatal: expected flush after ref listing error: subprocess-exited-with-error git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’ 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. [1]
同时,在引用中提到了一种可能的解决方法。您可以先输入 cd ~/.ssh 查询.ssh文件,如果找不到的话就直接创建一个,输入 mkdir ~/.ssh,然后设置账号和邮箱,输入git config --global user.name '账号名' 和 git config --global user.email '邮箱',接着输入 ssh-keygen -t rsa -C '邮箱' 生成公钥。提到了在执行git clone https://github.com/Stability-AI/stablediffusion.git命令时无法下载Stable-Diffusion-Stability-AI库的问题。这个错误是由于PyPI的问题导致的,可能与pip无关。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [【Stable Diffusion】安装过程中常见报错解决方法](https://blog.csdn.net/Bankcary/article/details/131237002)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [github报错:git@github.com: Permission denied (publickey).fatal: Could not read from remote repository](https://blog.csdn.net/waitle500/article/details/122960022)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文