win10下anaconda3安装dlib与face_recognition

1. 下载安装 anaconda3 x64版本

2. 安装cmake x64位版本

3.运行anaconda_navigation

4.新建python3.6环境

5.点击“Open Terminal”进入该Python环境下的dos窗口

6. (learn36) C:\Users\xxxx>pip install dlib

Collecting dlib
Using cached https://files.pythonhosted.org/packages/df/aa/6a9bb2a763107bb2606d6ee1aa65fcd3b51375a9ef6436e9c9280b0dd63c/dlib-19.15.0.tar.gz
Building wheels for collected packages: dlib
Running setup.py bdist_wheel for dlib ... done
Stored in directory: C:\Users\xxxx\AppData\Local\pip\Cache\wheels\8e\8d\4f\6a4ee32422131b30f5e483f821e359a32b5cd7abbb22dda22d
Successfully built dlib
Installing collected packages: dlib
Successfully installed dlib-19.15.0

 

7. pip install face_recognition

Collecting face_recognition
Using cached https://files.pythonhosted.org/packages/3f/ed/ad9a28042f373d4633fc8b49109b623597d6f193d3bbbef7780a5ee8eef2/face_recognition-1.2.3-py2.py3-none-any.whl
Requirement already satisfied: dlib>=19.7 in d:\tools\anaconda3\envs\learn36\lib\site-packages (from face_recognition) (19.15.0)
Collecting numpy (from face_recognition)
Downloading https://files.pythonhosted.org/packages/fb/7d/f8b97d97809f184d90faf320fa8e2e7eac994844c5e6c57adbed1283e9e9/numpy-1.15.1-cp36-none-win_amd64.whl (13.5MB)
100% |████████████████████████████████| 13.5MB 89kB/s
Collecting Pillow (from face_recognition)
Downloading https://files.pythonhosted.org/packages/1b/50/869910cd7110157fbefd0fed3db3656c1951f1bceecdd00e3716aa269609/Pillow-5.2.0-cp36-cp36m-win_amd64.whl (1.6MB)
100% |████████████████████████████████| 1.6MB 135kB/s
Collecting Click>=6.0 (from face_recognition)
Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl
Collecting face-recognition-models>=0.3.0 (from face_recognition)
Installing collected packages: numpy, Pillow, Click, face-recognition-models, face-recognition
Successfully installed Click-6.7 Pillow-5.2.0 face-recognition-1.2.3 face-recognition-models-0.3.0 numpy-1.15.1

8. 简单测试 ok

import dlib  

import face_recognition

未发现异常 一切ok,希望对朋友们有帮助,

9. 安装的关键在于

9.1 cmake一定要安装,并设置到环境变量path内

9.2 anaconda的环境变量也需要设置,分别为D:\tools\anaconda3和D:\tools\anaconda3\Scripts,两个都需要设置

 

posted on 2018-09-18 16:35  jobgeo  阅读(3470)  评论(0编辑  收藏  举报

导航