-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'face_recognition' #1016
Comments
why not you 'pip install face_recognition'? and you dirname can't named face_recognition. |
Did u managed to solve this? I have the same issue @TaeHyunKim11 |
No, I didn't. :< |
Same issue |
I am facing the same issue ..Can you please help me with it |
Step1: pip install cmake |
Hi Alamnoor, I installed all the three which you have mentioned but I am getting error no module named 'face_recognition'. Please help. |
Have you installed it in environment from where you are running your code? |
Hi Alamnoor, Thanks for your prompt response. I couldn't see face_recognition library in the environment but I am sure that I installed cmake, dlib, and face_recognition. I still getting no module error. I have been trying since 3 days but I couldn't find the solution. |
Can we use a platform where we will discuss it in live? After solution, we will put it here for other users. Please let me know. It should be work with above dependency. Thanks |
Hi Alamnoor,
Sorry for the late reply.
This is my email address- [email protected]
Once you drop an email I’ll send you my contact details.
Thanks
Benito
…On Thu, Mar 26, 2020 at 6:34 AM Alamnoor ***@***.***> wrote:
Hi Alamnoor,
Thanks for your prompt response.
I couldn't see face_recognition library in the environment but I am sure
that I installed cmake, dlib, and face_recognition.
I still getting no module error.
I have been trying since 3 days but I couldn't find the solution.
Can we use a platform where we will discuss it in live? After solution, we
will put it here for other users. Please let me know. It should be work
with above dependency. Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1016 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOQCY5LUVOH3RCKA24NRECTRJMVU5ANCNFSM4J7FZLQA>
.
|
Try not to use precompiled dlib library and try to install and compile it exclusively on your device. You need dlib to use face_recognition library. To install and build dlib on your system, you have to have Visual Studio 2015 or newer. As I had VS 2013, I could not install and build dlib. Therefore, I decided to install a precompiled version of dlib (.whl files). Although it was installed successfully, I had the same problem and I got the error: I managed to solve this problem by installing VS2015 and cmake. With "pip install dlib", the dlib library was installed and compiled exclusively on my system and after that with "pip install face-recognition" the library was installed and detected successfully. |
My problem fixed with this way: |
same issue |
How to install window?
Vào 02:02 AM, T.2, 13 Th4, 2020 Ajay Singh Chouhan <[email protected]>
đã viết:
… same issue
No module named 'face_recognition'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1016 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN5DG3MW6ZELXMGAHCQ4L7TRMIF25ANCNFSM4J7FZLQA>
.
|
same issue |
how to install face_recognition lib in conda env |
Running setup.py install for face-recognition-models ... done
ERROR: Command errored out with exit status 1: 'c:\users\abc\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\abc\AppData\Local\Temp\pip-install-3fadg9h2\dlib\setup.py'"'"'; file='"'"'C:\Users\abc\AppData\Local\Temp\pip-install-3fadg9h2\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\abc\AppData\Local\Temp\pip-record-jxq_vg6c\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output. (opencv-env) C:\Users\abc>python -m pip install --upgrade pip (opencv-env) C:\Users\abc>pip install dlib in my system, the problem occurs again and again which is mention above dlib problem and I already create a virtual environment, please help me. |
First make sure u have Visual studio code installed. |
if you have already installed dlib and face_recognition, 1st uninstall them by this will solve the issue. (worked for me ) |
Still same issue |
Here the trick is having installed "cmake" properly. can you check whether you have installed it correctly? |
It worked for me. Just Thanks @Alamnoor |
A used this comands to install on windows. //Crete conda env using python 3.6, dlib work on windows 32 bits using this version of anaconda repo //Instaling dblib from anaconda repo pip install opencv-python |
Just use pip work for me, I used pip3 before. |
this worked for me, thanks. |
Windows PowerShell Try the new cross-platform PowerShell https://aka.ms/pscore6 PS D:\Face_Recognition_Project-main\Face_Recognition_Project-main> & "C:/Program Files/Python310/python.exe" d:/Face_Recognition_Project-main/Face_Recognition_Project-main/attendance.py such error i am facing plz try to solve |
Hello. Click file (top left on the pane) In settings click the button with the project name,click python interpreter Click the + button in the window that opens Search face-recognition on search panel and install it. |
pip3.8 install face_recognition this worked for me, many thanks |
Step1: pip install cmake |
➜ python my_flask.py Traceback (most recent call last): |
Hi Benito I have installed all the three pakages but when i run in the pycharm it still shows face_recognition module not found Can you help me to solve this |
Step1: pip install cmake |
i have installed cmake dlib and face_recognition libraries succesfully but when i run the code it says that import "face_recognition" can't be resolved and it shows this in terminal : import face_recognition |
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
import face_recognition
ModuleNotFoundError: No module named 'face_recognition'
What I Did
and I ran, there was traceback message like this
what should I do??
The text was updated successfully, but these errors were encountered: