临时跑一个别人的文件,涉及人脸识别,在dlib库的安装上就出现了bug。bug极其冗长,我反正有点晕。
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure× Encountered error while trying to install package.
╰─> dlibnote: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
试了很多方法,包括换源。
最后发现是没有前题库。。。。比如上图这个CMake
先安装以下的库,再执行pip install dlib
pip install boost
pip install cmake
pip install dlib
成功