Reputation: 1
"ModuleNotFoundError: No module named 'face_recognition' after installing dlib, cmake, and face_recognition"
I am trying to use the face_recognition
library in Python, but I keep getting the following error:
ModuleNotFoundError: No module named 'face_recognition'
Here’s what I’ve done so far:
Installed cmake
:
pip install cmake
Installed dlib
:
pip install dlib
Installed face_recognition
:
pip install face_recognition
The installations seem to go through without any errors, but when I try to import face_recognition
in my Python script, I get the ModuleNotFoundError
. I have already checked the following:
face_recognition
is installed using pip list
, and it shows up in the list.which python
and which pip
.face_recognition
module multiple times.Here is the environment I'm working with:
I would appreciate any help in resolving this issue. What could be the cause of this error despite the successful installation of the necessary packages?
Upvotes: 0
Views: 103
Reputation: 166
face_recognition
package doesn't officially support Windows. If you have choice, try running it on Linux or Mac.
If you only have Windows, you can try this guide. Comparing to your description, author has additionally installed Visual Studio with C++ compiler and Boost.
Upvotes: 0