无法完成stable-diffusion-webui的安装
我的目标是让stable-diffusion-webui能够正常运行,这样我就可以在其中运行Deforum。我已经安装了Python v3.10.6,并且它带有CUDA 13.1.117。(我在Windows 11上,拥有128GB的系统内存,以及一张24 GB显存的GeForce RTX 3090。)
每次对stable-diffusion-webui进行干净安装时,它都无法安装CLIP,并会抛出相同的错误信息(见下方代码)。
File "<string>", line 3, in <module>
ModuleNotFoundError: No module named 'pkg_resources'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip' when getting requirements to build wheel
这个问题与2018年发布的另一个问题类似,我也尝试了该帖子中的两个建议,但八年的时间对于一条帖子来说,相关性已经很有限。
解决方案
以前也遇到过,这是setuptools的问题。
Stable Diffusion WebUI会创建它自己的虚拟环境,有时 setuptools 在其中安装不正确。
试试这个
py -3.10 -m pip install --upgrade pip setuptools wheel
然后,在删除 stable-diffusion-webui 目录中的虚拟环境文件夹后重新启动 webui-user.bat。这应该就能解决问题。
站内所有文章版权归属LeftHeroAI导航站,无授权禁止任何主体转载、抄袭、复制内容,亦不得私自架设镜像站点。一经侵权,本站将通过法律途径追责。