for osx
$ xcode-select --install
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install cmake
$ brew install python3
$ brew install boost-python --with-python3 --without-python
Clone the code from github:
git clone https://github.com/davisking/dlib.git
Build the main dlib library:
cd dlib
mkdir build; cd build; cmake .. -DDLIB_USE_CUDA=0 -DUSE_AVX_INSTRUCTIONS=1; cmake --build .
Build and install the Python extensions:
cd ..
python3 setup.py install --yes USE_AVX_INSTRUCTIONS --no DLIB_USE_CUDA
$ pip3 install face_recognition
http://docs.python-guide.org/en/latest/starting/install3/osx/ https://brew.sh/index_zh-tw.html https://github.com/ageitgey/face_recognition https://github.com/davisking/dlib https://www.pyimagesearch.com/2017/03/27/how-to-install-dlib/