如果你有登梯子的想法, 你不會找到這篇文章。登梯子是可以解決問題的,但因爲某些linux服務器上牆不是很方便, 本文僅介紹透過修改launch.py代碼的方式來解決。
終耑報錯的全文如下:
error: subprocess-exited-with-error × git clone --filter=blob:none --quiet https://github.com/mlfoundations/open_clip.git /tmp/pip-req-build-2narv7q3 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.
首先你要進入stable diffusion webui的目錄, 找到launch.py這個文档。不管網上出什麽樣的包裝,stable diffusion的核心指令集就是它。
vi launch.py
找到以下代碼
openclip_package = os.environ.get('OPENCLIP_PACKAGE', "git+ https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b")
改成
openclip_package = os.environ.get('OPENCLIP_PACKAGE', "git+ https://gitee.com/ufhy/open_clip.git")
然後你再去運行一下試試看。