could not build wheels for dlib, which is required to install pyproject.toml-based projects 如何解决

 最近在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。

打开这个git链接:GitHub - z-mahmud22/Dlib_Windows_Python3.x: Dlib compiled binary (.whl) for Python 3.7-3.12 and Windows x64

根据你自己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

这里是聚梦小课堂,就算不买课也没关系,点个关注,交个朋友😄

  • 14
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

聚梦小课堂

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值