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.
2
Answers
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:
Check out the source for installation.
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 thepython3 -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.