https://github.com/yu4u/age-gender-estimation这个项目用到了dlib这个库,这个库官方是有python3.6的安装包的,但是python3.7的没有。python3.7下安装dlib不能只靠pip install。
1 首先pip install -r requirements.txt 后报错cmake must be installed to build … (反正是跟dlib的安装有关)
2 那就pip install cmake, 又报错No CMAKE_CXX_COMPILER could be found …
3 根据这个教程https://blog.csdn.net/zhang475546259/article/details/84104368来安装dlib。我这里只做了教程的前四步后就如下图所示安装dlib安装成功(4个cl.exe我只把这一个加到了环境变量C:\DevelopSoftware\VS2019\VC\Tools\MSVC\14.27.29110\bin\Hostx86\x86)