Dlib module installation under win10 environment (I used version python3.7)

Installed in accordance with their own ways and means of others under dlib, successfully install and use, it also summed up the experience under

Taken https://blog.csdn.net/weixin_41596280/article/details/89028817

 

1 vs download install free community version

Download: https: //visualstudio.microsoft.com/zh-hans/downloads/

 

2 After downloading the installation process needs to change position according to their needs

 

 

 3 After installation, the path will be added to the cl.exe environment variable is on my c drive

 

 

 4 mounted https://cmake.org/download/ Internet Download cmake cmake-3.x.0-rc3-win64-x64.msi directly mounted, may be downloaded ZIP package, after decompression can be used directly on the D drive. -3.x-0 pick on the line 

 

 

 

 

 

 Cmake is successful then detected in the current directory

 

 

 5 Installation boost

  Quguan network http://www.boost.org/ download boost, boost download and then unzip and run bootstrap.bat file (if configured cl.exe no problem, then) will generate b2.exe, bjam.exe and project -config.jam. Note that this file is best to extract the D drive. Then the current directory run the command line: b2 install,

Is then performed after a long wait b2 -a --with-python address-model = 64 toolset = msvc runtime-link = static (note with front two dashes) will be installed after the completion of the file is added to boost the environment variable, first two new variable names and BOOST_ROOT BOOST_LIBRARYDIR, then the corresponding path shown in FIG.

 

 

 6 Installation dlib

  Download dlib source http://dlib.net/files/, I downloaded dlib-19.17

  cd 到 dlib-19.17.0 目录下 运行命令 python setup.py install 等待安装完成,安装完成文件夹会多一个build文件夹。

 

 7  最后配置

  然后将 安装完成后的目录下的三个如下截图文件夹 复制到 python安装文件夹的lib下面

 

   然后将dlib-19.17.0\build\lib.win-amd64-3.7路径下的dlib.cp37-win_amd64.pyd 复制到python安装目录的DLLs中。

8 最后检测是否安装成功

Guess you like

Origin www.cnblogs.com/love-chen-forever/p/12098430.html