安裝 dlib 庫的時候需要用到 CMake 進行本地編譯,而Cmake又是基於Visual Studio運行的,我在裝這個庫的時候,各種找不到教程,就想着分享一下自己的經驗。
32位
python3.5
python3.6
python3.7
64位
python3.6
python3.7
1.先安裝Visual Studio2017
3.14.3-win64版本的Cmake需要安裝VS2017
2.裝CMake
我下的是cmake-3.14.3-win64-x64.msi
騰訊網盤鏈接:https://share.weiyun.com/5eccLtB 密碼:c7mdd6
選第二項,安裝位置放哪都行,不要有中文。
裝好后用 pip install dlib 安裝一下,如果不可以就重啟電腦。
如果無法安裝成功,請聯系我