不推荐 pip3 install dlib
首先, 下载源代码:
地址:
Links for dlib
dlib-18.17.100-cp27-none-win32.whl
dlib-18.17.100-cp27-none-win_amd64.whl
dlib-18.17.100-cp34-none-win32.whl
dlib-18.17.100-cp34-none-win_amd64.whl
dlib-18.17.100-cp35-none-win32.whl
dlib-18.17.100-cp35-none-win_amd64.whl
dlib-18.17.100.zip
dlib-19.0.0.tar.gz
dlib-19.1.0-cp35-cp35m-win_amd64.whl
dlib-19.1.0.tar.gz
dlib-19.3.1-cp35-cp35m-win_amd64.whl
dlib-19.3.1.tar.gz
dlib-19.4.0-cp35-cp35m-win_amd64.whl
dlib-19.4.0.tar.gz
dlib-19.5.0.tar.gz
dlib-19.5.1-cp36-cp36m-win_amd64.whl
dlib-19.5.1.tar.gz
dlib-19.6.0-cp36-cp36m-win_amd64.whl
dlib-19.6.0.tar.gz
dlib-19.6.1-cp36-cp36m-win_amd64.whl
dlib-19.6.1.tar.gz
dlib-19.7.0-cp36-cp36m-win_amd64.whl
dlib-19.7.0.tar.gz
dlib-19.8.0.tar.gz
dlib-19.8.1-cp36-cp36m-win_amd64.whl
dlib-19.8.1.tar.gz
dlib-19.8.2.tar.gz
dlib-19.9.0.tar.gz
dlib-19.10.0.tar.gz
dlib-19.12.0.tar.gz
dlib-19.13.0.tar.gz
dlib-19.13.1.tar.gz
dlib-19.14.0.tar.gz
dlib-19.15.0.tar.gz
dlib-19.16.0.tar.gz
dlib-19.17.0.tar.gz
dlib-19.18.0.tar.gz
dlib-19.19.0.tar.gz
dlib-19.20.0.tar.gz
dlib-19.21.0.tar.gz
比如版本: dlib-19.21.0.tar.gz
wget https://files.pythonhosted.org/packages/a4/7b/2f7f29f460629a8143b2deea1911e2fb1d9d88d29bf645ba321461588e88/dlib-19.21.0.tar.gz#sha256=e79d8e14171b8446d6b5434d7dc3b44a23ca05c8f99266acaf731cc7b268edb6
tar -zxtf dlib-19.21.0.tar.gz
cd dlib-19.21.0
python setup.py install
当然需要CMake boast安装,可以参考:
https://blog.csdn.net/qq_34201858/article/details/84334981