question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'face_recognition'

See original GitHub issue
  • face_recognition version: 1.2.3
  • Python version: 3.7.4
  • Operating System: windows 10

Description

I have a problem with Run the file of facerec from webcam faster so I referenced #407 issue and I revised code like ‘import face_recognition’ to ‘from face_recognition_cli import face_recognition’


before I revised the code just like

import face_recognition

There was traceback message like this

PS C:\Users\puppy> & C:/Users/puppy/Anaconda3/python.exe c:/Tensorflow1/face/Untitled-1.py Traceback (most recent call last): File “c:/Tensorflow1/face/Untitled-1.py”, line 1, in <module> import face_recognition ModuleNotFoundError: No module named ‘face_recognition’

What I Did

and I ran, there was traceback message like this

PS C:\Users\puppy> & C:/Users/puppy/Anaconda3/python.exe c:/Tensorflow1/face/Untitled-1.py
Traceback (most recent call last):
  File "c:/Tensorflow1/face/Untitled-1.py", line 1, in <module>
    from face_recognition_cli import face_recognition
  File "c:\Tensorflow1\face\face_recognition_cli.py", line 6, in <module>
    import face_recognition.api as face_recognition
ModuleNotFoundError: No module named 'face_recognition'

what should I do??

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:31

github_iconTop GitHub Comments

22reactions
Alamnoorcommented, Feb 25, 2020

Step1: pip install cmake Step2: pip install dlib Step3: pip install face_recognition it worked for me… But install it in specific environment that will be used later for face_recognition code.

9reactions
NusriNalircommented, Jul 17, 2020

if you have already installed dlib and face_recognition, 1st uninstall them by pip uninstall. then make sure you have cmake installed. you can do that by cmake –version if not install cmake. after that install dlib by conda. this way it will make sure you have all the dependencies installed. conda install -c conda-forge dlib then install face_recognition again by pip install face_recognition

this will solve the issue. (worked for me )

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'face_recognition'
And I've checked that I've found following error message when I've installed face_recognition library. pip install face_recognition RuntimeError ...
Read more >
No Module Named 'face_recognition' in Python
How to Fix “ModuleNotFoundError: No module named 'face-recognition'” in PyCharm · Open File > Settings > Project from the PyCharm menu. · Select...
Read more >
ModuleNotFoundError No module named face recognition ...
In this video We will fix the error " ModuleNotFoundError No module named face recognition import face_recognition "I got this error when i ......
Read more >
ModuleNotFoundError: No module named 'face-recognition'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'face-recognition' How to remove the M.
Read more >
Installation — Face Recognition 1.4.0 documentation
Stable release¶. To install Face Recognition, run this command in your terminal: $ pip3 install face_recognition. This ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found