Clone the code from github:
git clone https://github.com/davisking/dlib.git
Build the main dlib library (optional if you just want to use Python):
cd dlib
mkdir build; cd build; cmake ..; cmake --build .
Build and install the Python extensions:
cd ..
查看 python 版本,若为 python 则直接执行
python setup.py install
提示权限不足则加上 sudo
At this point, you should be able to run python3 and type import dlib successfully.
安装 face_recognitionpip install face_recognition



