face_recognition中文文档地址: github.com/ageitgey/fa…
Mac上运行源码步骤:
- 首先在Mac上安装Anaconda桌面可视化程序,安装完成在终端输入
conda --version显示conda版本代表安装成功。 - 使用
conda管理多版本的python。//创建face_recognition环境,并在该环境中安装python3.9.6版本 conda create --name face_recognition python=3.9.6 //查看conda所有的环境 conda env list //使用某个环境 conda activate 环境名(face_recognition) - 下载
face_recognition源码,在phcharm中打开。 - 在
phcharm终端运行pip install -r requirements_dev.txt -i https://pypi.tuna.tsinghua.edu.cn/simple安装源码需要的第三方依赖。 - 报错:
cryptography安装报错。 - 将
requirements_dev.txt依赖文件中的版本号修改成3.4.6,cryptography==3.4.6。 - 在此在
phcharm终端运行pip install -r requirements_dev.txt -i https://pypi.tuna.tsinghua.edu.cn/simple,安装依赖成功。 - 在
examples目录下,右击任一一个.py文件,选择debug都可以启动程序查看效果。