Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)
edited by

For image recognition, I want to use "dlib" for image recognition. With OpenCV my python app is running too good, but when I tried to install "dlib" from the "cmd", I'm getting this following error:

error: Cannot find cmake, ensure it is installed and in the path. You can install cmake using the instructions at https://cmake.org/install/You can also specify its path with --cmake parameter.

Can anyone please help me out with this error !! Thank you 

1 Answer

0 votes
by (26.4k points)
edited by

Here, we need two things. One is CMake and the other one is Visual Studio

Why CMake?

The reason is dlib was developed in C based programming language, so we need this program. With the help of this link, we can able to find the CMake. 

Why Visual Studio?

Earlier, as  I mentioned, dlib is a C-based programming language, and we need a compiler. So, you can download Visual studio by checking out this link. After finished installing visual studio, further we need to install additional packages for C program, C++ program, which is packages CMake tools for Windows

Kindly follow the following steps:-

  1. pip install cmake
  2. Click on this link to install Visual Studio build tools 
  3. In the visual studio, go to Individual components tab, Visual C++ tools for CMake, there Check the checkbox "Compilers, build tools and runtimes" section
  4. pip install dlib

Want to become a python expert? You can join this python course

To know more about these topics, you can also look at the following video tutorial :

Browse Categories

...