Gaurav Jaiswal
Gaurav Jaiswal

Reputation: 1

Unable to import face_recognition

"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:

  1. Installed cmake: pip install cmake

  2. Installed dlib: pip install dlib

  3. 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:

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

Answers (1)

Crashdown
Crashdown

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

Related Questions