RuntimeError:
CMake must be installed to build the following extensions: dlib
Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib
RuntimeError:
CMake must be installed to build the following extensions: dlib
Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib
I ran into this issue as well. I am using windows and have a python environment that I am installing the requirements to.
I ran pip install cmake
, and then pip install dlib
. I no longer received the error and successfully installed dlib.
I also had the same issue. For those who deals with it now -
Firstly you have to install visual studio, and than install there the extension "tools for CMake". Look at the installation part here: https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=vs-2019
Only after that you will be able to pip install this package.
So: