Machine LearningPython
Trending

How to Install dlib Library on windows in 5 mins

Fix dlib installation issue

Download wheel file to install dlib here

YT: Data Magic AI

Dlib is a modern C++ toolkit that contains machine learning algorithms and tools for creating complex software in C++. this libraries Python version is also available which wraps up this c++ dlib.

It provides a variety of algorithms for face detection, face landmark detection, object tracking, pose estimation, and image processing. One of the main strengths of dlib is its ability to work efficiently with both CPU and GPU. Dlib also has Python bindings, which makes it easy to use in Python.

Dlib is widly used for Face recognition, Object detection and tracking, Image segmentation, Landmark, augmented reality, facial expression analysis, and gesture recognition etc.

Overall, dlib is a versatile and powerful library that can be used in a wide range of applications that require advanced computer vision and machine learning algorithms.

Install dlib is not easy task:

There is high chance that you will come across below CMAKE error,

Installing dlib is not easy task:

--Building for: NMake Makefiles 

-- The C compiler identification is unknown 

-- The CXX compiler identification is unknown 

CMake Error in CMakeLists.txt: T

he CMAKE_C_COMPILER: cl is not a full path and was not found in the PATH. 

To use the NMake generator with Visual C++, cmake must be run from a shell that can use the compiler cl from the command line. This environment is unable to invoke the cl compiler. To fix this problem, run cmake from the Visual Studio Command Prompt (vcvarsall.bat). 

Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. 

CMake Error in CMakeLists.txt: The CMAKE_CXX_COMPILER: cl is not a full path and was not found in the PATH. To use the NMake generator with Visual C++, cmake must be run from a shell that can use the compiler cl from the command line. This environment is unable to invoke the cl compiler. 

To fix this problem, run cmake from the Visual Studio Command Prompt (vcvarsall.bat). 

Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. 

-- Configuring incomplete, errors occurred!

Solution:

Install dlib with wheel file.

  • download wheel file here
  • Extract the downloaded file
  • open command prompt on windows
  • cd <extracted folder path>
  • pip install dlib-19.19.0-cp37-cp37m-win_amd64.whl

If you are unable to follow any steps then please go through the video tutorial.

If you want to install dlib on python 3.6 and below version then use this link to download wheel file.

How to Install dlib on Python 3.10

How to Install dlib on Python 3.9

How to Install dlib on Python 3.8

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button