卓特视觉
海艺AI

ComfyUI安装插件时报错:Building wheel for dlib (pyproject.toml) did not run successfully 的解决办法!

海艺AI绘画

ComfyUI在安装某些插件时需要安装dlib库这个环境依赖,但是很多人安装时却收到了类似下面这样的报错信息,大意就是安装dlib库时构建轮子(wheel)失败!从而导致相关的comfyui插件也无法使用!

Building wheels for collected packages: dlib Building wheel for dlib (pyproject.toml) …

error: subprocess-exited-with-error × Building wheel for dlib (pyproject.toml) did not run successfully. │ exit code: 1

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

error ERROR: Failed building wheel for dlib Failed to build dlib ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects

那么如何解决这个问题呢?很简单,缺少编译工具,只需要安装Visual Studio的C++开发组件来编译dlib就可以了!下面是具体步骤:

①下载Visual Studio 2022,选择社区版即可。下载地址:https://visualstudio.microsoft.com/zh-hans/downloads/

ComfyUI安装插件时报错:Building wheel for dlib (pyproject.toml) did not run successfully 的解决办法!

②安装Visual Studio 2022,在工作负荷那里勾选python开发和使用C++桌面开发。解决上面的问题主要依赖于C++的桌面开发组件。选择好之后,点击右下角的【修改】,即可开始安装!

ComfyUI安装插件时报错:Building wheel for dlib (pyproject.toml) did not run successfully 的解决办法!

③安装完成之后,就可以重新打开你的comfyui启动器安装刚才失败的插件了!

赶紧尝试一下吧!

© 版权声明

相关文章