【解答】Windows安装dlib和face_recognition库

时效性:2019年

必须拥有的:Visual Studio、Cmake

1、安装Visual Studio(因为cmake依赖C++)

官网下载并安装社区版,勾选C++套件。

2、安装Cmake(因为dlib库需要cmake编译)

官网下载并安装

3、安装face_recognition和dlib

利用pip安装,pip install face_recognition ,安装face_recognition会自动安装dlib
如果遇到下载网速太慢的问题,可以到PyPI上用自己的下载工具下载好,然后离线安装。
下载链接,下载后缀为whl的问题,然后在文件保存位置运行 pip install face_recognition-xx.whl,按Tab可以自动补全。

4、曾经遇到的报错有

CMake Error in CMakeLists.txt:
Generator NMake Makefiles does not support platform specification, but platform x64 was specified.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

 cl
      is not a full path and was not found in the PATH.
      To use the NMake generator with Visual C++, cmake must be run from a shell
      that can use the compiler cl from the command line
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

yzy_1996

买杯咖啡,再接再厉

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

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

打赏作者

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

抵扣说明:

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

余额充值