安装此文件的前提是已经安装了dlib
由于正常按照官网的安装速度非常慢,且会出现pip版本等问题,且下载中途后出现中断类似Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/urllib3/response.py", line 360, in _error_catcher
yield
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/urllib3/response.py", line 442, in read
data = self._fp.read(amt)
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/cachecontrol/filewrapper.py", line 62, in readTraceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/urllib3/response.py", line 360, in _error_catcher
yield
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/urllib3/response.py", line 442, in read
data = self._fp.read(amt)这种问题。貌似是依赖没有设好。经查询资料和切换从其他网站获得可用下面方法来实现:
第一步安装相关依赖
只针对 Ubuntu16.04
sudo apt-get install build-essential cmake
sudo apt-get install libgtk-3-dev
sudo apt-get install libboost-all-dev
第二步. 安装 face_recognition
pip install -i https://pypi.douban.com/simple/ face_recognition