Joe Faulkner
Joe Faulkner

Reputation: 19

no module named simple_facerec

MacOS Catalina python version 3.8.2

Using opencv for real time face detection I tried.

'from simple_facerec import SimpleFacerec'

returns : no module named 'simple_facerec'

I tried pip3 install cmake --> pip3 install dlib --> pip3 install face_recognition to no avail.

Any suggestions would be highly appreciated.

Upvotes: -1

Views: 2824

Answers (2)

JialeDu
JialeDu

Reputation: 9883

It would be better to show what results you got from using the command in question, whether the installation was successful, and what the error message is.

You can try to install the face_recognition package using the python3 -m pip install face-recognition command.

If the package is already installed in one of your environments, use Ctrl+Shift+P --> Python:Select Interpreter to switch the correct interpreter.

Upvotes: 0

hsaltan
hsaltan

Reputation: 521

I guess this part pip3 install cmake --> pip3 install dlib doesn't seem to be correct.

You need to follow the documentation:

First, make sure you have dlib already installed with Python bindings.

And then:

pip3 install face_recognition

Check out the source for installation.

Upvotes: 0

Related Questions