1. 程式人生 > >linux+anaconda env安裝cmake,dlib,face-recognition

linux+anaconda env安裝cmake,dlib,face-recognition

安裝cmake

pip install cmake

安裝dlib

#下載dlib原始碼
git clone https://github.com/davisking/dlib.git
#編譯dlib
cd dlib/
mkdir build
cd build/
cmake .. -DDLIB_USE_CUDA=0 -DUSE_AVX_INSTRUCTIONS=1
cmake --build
#編譯並安裝python的擴充套件包
cd ..
python setup.py install --yes USE_AVX_INSTRUCTIONS --no DLIB_USE_CUDA

安裝face_recognition

pip install face_recognition