mac下安裝face_recognition

安裝依賴庫:

一、安裝cmake (是一個跨平臺的安裝工具)python

 brew install cmake

二、安裝boost、boost-python(C++的程序庫git

brew install boost
brew install boost-python --with-python2.7

三、編譯dlibgithub

git clone https://github.com/davisking/dlib.git  
cd dlib
mkdir build
cd build
cmake ..                          //以默認方式(SSE41指令)編譯dlib
cmake --build .
cd ..
sudo python setup.py install

4. 安裝人臉識別的python庫工具

pip install face_recognition

五、安裝opencv-pythonui

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python

此時報錯:spa

Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurate

解決方案:強行升級code

pip install numpy --ignore-installed numpy
相關文章
相關標籤/搜索