user12867493
user12867493

Reputation:

Pip3 can't install face_recognition on macOS

On macOS I ran this command in Terminal:

sudo pip3 install face_recognition

It started installing and then threw this error:

ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-75ks5d9l/dlib/setup.py'"'"'; file='"'"'/private/tmp/pip-install-75ks5d9l/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/tmp/pip-record-bze0mci9/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/dlib Check the logs for full command output.

I read a suggestion about installing dlib first which also threw an error. How can I fix this?

Upvotes: 1

Views: 1780

Answers (1)

Jay Saha
Jay Saha

Reputation: 23

First install cmake using following command:

pip3 install cmake

Upvotes: 2

Related Questions