1、Anaconda 下载
https://www.anaconda.com/download/#windows
2、安装Anaconda
3、Anaconda Prompt
(base)C:\Users\Administrator>conda create –n py36 python=3.6
(base)C:\Users\Administrator>y
(base)C:\Users\Administrator>activate py36
(py36)C:\Users\Administrator>pip install dlib (直接安装会报错)
去https://pypi.org/project/dlib/#history 直接下一个支持python3.6 且版本号大于19.4的dlib,格式为whl,同时也下载了一个face-recognition.whl,我放到downloads目录下了
(py36)C:\Users\Administrator>pip install dlib-19.7.0-cp36-cp36m-win_amd64.whl
(py36)C:\Users\Administrator>pip install face_recognition-1.2.3-py2.py3-none-any.whl
(py36)C:\Users\Administrator>pip install opencv_python
(py36)C:\Users\Administrator>conda install spyder
(py36)C:\Users\Administrator>conda install gevent
(py36)C:\Users\Administrator>pip install freetype-py
(py36)C:\Users\Administrator>conda list
(py36)C:\Users\Administrator>spyder
4、配置国内镜像
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes