python 中 dlib库的安装

发布时间:2019-03-12 22:59:43编辑:auto阅读(2761)

    安装 dlib 库的时候需要用到 CMake 进行本地编译,而Cmake又是基于Visual Studio运行的,我在装这个库的时候,各种找不到教程,就想着分享一下自己的经验。

    32位

    python3.5

    python3.6

    python3.7

    64位

    python3.6

    python3.7

     

    1.先安装Visual Studio,我安装的是2017

    这个在网上一搜就很多,个人建议就是能装新的就装新的。不过2017占资源太多,笔记本不建议装。

    2.装CMake

    官网:https://cmake.org/

    我下的是cmake-3.12.2-win64-x64.msi

     

    选第二项,安装位置放哪都行,不要有中文。

    装好后用 pip install dlib 安装一下,如果不可以就重启电脑。

     

    如果无法安装成功,请联系我

关键字