How to solve Dlib error on python 3.10 and up versions | Without any errors | Cool Py

Hello Guys! Today I will tell you how to solve dlib error while installing face recognition module in python.

Note: This trick will only work in python 3.10 and upper versions of python.

Problem while installing face recognition module

As you all know that while installing face recognition module so many error come, Like: You have to download visual studio for c++, dlib error and many other errors.

Problem while installing Dlib module

If you try to install dlib directly you will get another error telling to download cmake. But after you download cmake then also dlib will not install and throw another error.

Solution Step by Step:

These are the steps to solve the error completely

Step 1: Open any terminal like : CMD, Powershell

Step 2: Type the commands: 

1) "pip install cmake"

 2) "pip install https://github.com/jloh02/dlib/releases/download/v19.22/dlib-19.22.99-cp310-cp310-win_amd64.whl"

3) "pip install face_recognition"{Note: Don't forget the underscore between the words!}

Your error will gone and you will be happy again! You can also watch this video and comment me so if  this trick will not work I will make another video



Comments

Popular posts from this blog

How to download python 3.10.2 | Cool Py

Best Python Web Development FrameWork | DJango v/s Flask | Cool Py