最近在comfyui中调试一个摄影类的工作流的过程中,遇到这样一组新bug:
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 dlibFailed to build dlib
ERROR: could not build wheels for dlib, which is required to install pyproject.toml-based projects
那应该如何解决呢?
问题其实处于dlib没有安装好,安装方法是先下载wheel。
根据你自己python的版本号下载对应的wheel文件
然后到本地的python环境下,执行以下代码(whl文件的地址记得改成你刚刚下载的地址和文件):
python -m pip install dlib-19.22.99-cp38-cp38-win_amd64.whl
重启,就可以了。
如果对你有帮助,记得帮忙点个赞咯~
有兴趣也可以看看stack overflow上的这个答案:python - "ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects" while installing dlib in PowerShell - Stack Overflow
✨写在最后
去年的时候写了两门比较基础的Stable Diffuison WebUI的基础文字课程,大家如果喜欢的话 ,可以按需购买,在这里首先感谢各位老板的支持和厚爱~
✨StableDiffusion系统基础课(适合啥也不会的朋友,但是得有块Nvidia显卡):
https://blog.csdn.net/jumengxiaoketang/category_12477471.html
🎆综合案例课程(适合有一点基础的朋友):
https://blog.csdn.net/jumengxiaoketang/category_12526584.html
这里是聚梦小课堂,就算不买课也没关系,点个关注,交个朋友😄