赞
踩
在初始化Stable Diffusion webui过程中出现RuntimeError: Couldn't clone Stable Diffusion.
报错
fatal: unable to access ‘https://github.com/Stability-AI/stablediffusion.git/’: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
Cloning into 'E:\stable-diffusion-webui\repositories\stable-diffusion-stability-ai'...
fatal: unable to access 'https://github.com/Stability-AI/stablediffusion.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
Traceback (most recent call last):
File "E:\stable-diffusion-webui\launch.py", line 48, in <module>
main()
File "E:\stable-diffusion-webui\launch.py", line 39, in main
prepare_environment()
File "E:\stable-diffusion-webui\modules\launch_utils.py", line 384, in prepare_environment
git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
File "E:\stable-diffusion-webui\modules\launch_utils.py", line 186, in git_clone
run(f'"{git}" clone "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}", live=True)
File "E:\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't clone Stable Diffusion.
Command: "git" clone "https://github.com/Stability-AI/stablediffusion.git" "E:\stable-diffusion-webui\repositories\stable-diffusion-stability-ai"
因为git在拉取或者提交项目时,中间会有git的http和https代理,但是我们本地环境本身就有SSL协议了,所以取消git的https代理即可,不行再取消http的代理。
原因还有一个,当前代理网速过慢,所以偶尔会成功,偶尔失败。
//取消http代理
git config --global --unset http.proxy
//取消https代理
git config --global --unset https.proxy
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。