- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
import face_recognition
image = face_recognition.load_image_file("My_Image.png")
face_locations = face_recognition.face_locations(image)
print("I found {} face(s) in this photograph.".format(len(face_locations)
Traceback (most recent call last): File "sample.py", line 1, in import face_recognition
face_recognition
图书馆。
pip install face_recognition
RuntimeError:
*******************************************************************
CMake must be installed to build the following extensions: dlib
*******************************************************************
----------------------------------------
Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib, Pillow, numpy, face-recognition-models, face-recognition
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/lj/cyczw6r164b5f3q1dvmbbkfh0000gn/T/pip-install-gk35rom0/dlib/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/lj/cyczw6r164b5f3q1dvmbbkfh0000gn/T/pip-record-3enjhgfq/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/lj/cyczw6r164b5f3q1dvmbbkfh0000gn/T/pip-install-gk35rom0/dlib/
Python 3.7.1
pip 是
pip 19.0.3 from /Library/Python/2.7/site-packages/pip (python 2.7)
最佳答案
使用以下命令安装 Cmake:sudo apt install cmake
而对于 python3 不要使用 pip
单独使用 pip3
安装 future 的python3模块:pip3 install face_recognition
关于python - ModuleNotFoundError : No module named 'face_recognition' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55154397/
我是一名优秀的程序员,十分优秀!