在cmd中使用
pip install dlib
安装dlib,报错
Could not build wheels for dlib, which is required to install pyproject.toml-based projects
查了一圈,带这种“wheel”的报错,都要去找.whl文件来手动下载安装包
注意,一定要下载与自己python版本对应的包!
我的python是3.11,GitHub竟然没有对应的dlib…
感谢https://blog.csdn.net/heyday_period/article/details/137402047,提供了对应python 3.11的dlib的.whl文件
cd到.whl文件的目录下,安装
pip install dlib-19.24.1-cp311-cp311-win_amd64.whl
显示
Successfully installed dlib-19.24.1
即为成功