以 macOS、Ubuntu 为例,其他系统类似
step 1. 安装相关依赖
# for macOS
brew install cmake brew install boost brew install boost-python --with-python3
# for Ubuntu
sudo apt-get install build-essential cmake
sudo apt-get install libgtk-3-dev
sudo apt-get install libboost-all-dev
step 2. 安装 dlib
pip install dlib
作者:花花儿
链接:https://www.zhihu.com/question/34524316/answer/182278536
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
附:step2中安装dlib也可在前置依赖安装完成后使用PyCharm进行安装,我是用的Deepin安装的,非常顺利