ubuntu16.04和ubuntu18.04安装dlib
-
# for macOS brew install cmake brew install boost brew install boost-python --with-python3 # for Ubuntu 16.04 sudo apt-get install build-essential cmake sudo apt-get install libgtk-3-dev sudo apt-get install libboost-all-dev # 安装 dlib pip install dlib
git clone https://github.com/davisking/dlib.git cd dlib mkdir build && cd build && cmake .. && make -j8 sudo make install sudo apt-get -y install libopenblas-dev cd .. sudo python setup.py install --yes USE_AVX_INSTRUCTIONS
1. Python.h 缺少报错 :
/tmp/pip-install-jcduztn1/dlib/dlib/external/pybind11/include/pybind11/detail/common.h:111:20: fatal error: Python.h: 没有那个文件或目录
解决:需要安装 python-dev
命令:sudo apt-get install python3.5-dev
本人ubuntu中环境是python3.5 所以安装 python3.5-dev
2. 安装时 依赖错误:
***********************************************************************************************
di@di-pc:~/work/dlib/dlib$ sudo apt-get install python-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
-
作者:柒月
Q群 :2122210(嵌入式/机器学习)