Skip to content
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

I keep getting errors while installing dlib and face_recognition. #1007

Open
shanksghub opened this issue Dec 18, 2019 · 14 comments
Open

I keep getting errors while installing dlib and face_recognition. #1007

shanksghub opened this issue Dec 18, 2019 · 14 comments

Comments

@shanksghub
Copy link

shanksghub commented Dec 18, 2019

  • face_recognition version:
  • Python version :3.8 and 2.7
  • Operating System:UBUNTU 18.04 and Windows 10

### Description

Describe what you were trying to get done.
I want to use face_recognition to recognize faces from my webcam but i can't install face_recognition and dlib.i even reinstalled python and deleted packages.I keep getting errors.

Please look at the pictures for the errors and tell me how to fix them.

Screenshot (1)
Screenshot (2)
Screenshot (3)
Screenshot (4)
Screenshot (5)

i reinstalled python,deleted packages but same errors.

@mowshon
Copy link

mowshon commented Dec 18, 2019

You don't have cmake installed. Even your screenshots tells you about that issue.
https://cmake.org/download/

@shanksghub
Copy link
Author

@mowshon the errors remain the same inspite of installing cmake. Neither would upgrading python or pipi resolve that I think.
Screenshot (14)

@bomei
Copy link

bomei commented Dec 19, 2019

@shanksghub I suggest you to find a compiled dlib wheel for you specific python version to install, just google it. And some libs may not support 3.8 well now, suggest to use 3.7 for this moment.

@mowshon
Copy link

mowshon commented Dec 19, 2019

@shanksghub, the problem is still in your cmake. I think the problem is in your PATH, you didn't set him.

Also, I think you have been ignore this step:
Choose: "Add CMake to the system PATH for all users"

image

Remove your cmake, and reinstall: https://tulip.labri.fr/TulipDrupal/?q=node/1081

@shanksghub
Copy link
Author

@mowshon Okay.thank you..i'll do as you told..I have been installing cmake by doing pip install cmake till now

@shanksghub
Copy link
Author

@bomei sounds like a solution..thanks :)

@siyangxie
Copy link

pip install cmake or pip3 install cmake if you're on python 3.x

@shanksghub
Copy link
Author

@siyangxie till now i did pip install cmake,i uninstalled it and dowloaded the zip file from the link given above..let's see how this goes

@shanksghub
Copy link
Author

Screenshot (15)

I don't know what to do after the i reach here in the above picture..i am going to use open cv manual installation..hope that works fine

@siyangxie
Copy link

@siyangxie till now i did pip install cmake,i uninstalled it and dowloaded the zip file from the link given above..let's see how this goes

I wouldn't recommend to install opencv from scratch. It's always a pain in the ass... Another easy way to produce this environment is to use Anaconda. You can install cmake from Anaconda and go pip install opencv-python after then. Don't forget to set up Anaconda as your project environment.
Anaconda

@felixagbavor
Copy link

if you are still getting the error. here is what worked for me on windows using command line(I'm assuming you have python already installed);

Download the latest version of visual studio.
Select and download C++ Clang compiler(should be under the compiler sub-section) in the individual component header section.

Do these installs from cmd using pip:
pip install opencv-python
pip install cmake
pip install boost
pip install face_recognition

NB: it took about 5-6 mins for dlib package to install through face_recognition on my computer, just fyi.

@alessiosavi
Copy link

@root-Akshay
Copy link

  1. pip install CMake.
  2. Install VS community and under individual components -choose Visual C++ tools for CMake.
    Click here to download VS installer

image
3. pip install face_recognition.

I know this method install's cmake twice but it works.

ps: pip install face_recognition will take a lot of time so be patient

@Suchir2004
Copy link

Download the dlib files
Link - https://drive.google.com/file/d/11Hip8-llWEm5GN3_u4ibI09unL7xCw0g/view?usp=drivesdk
And just copy the path of that file and paste it into the terminal.
Stable version is 10 among all files that you have been downloaded from the link

In terminal you just need copy the path of that particular file; there are 4 files the choose one which is suitable for your computer work on windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants