I am trying to pip install dlib for a project I am working on, but when I try I get this error:
RuntimeError: CMake must be installed to build the following extensions: dlib
I tried to install CMake, but couldn't understand where should I locate the extracted files?
The Windows installer has an option to modify the system PATH environment variable. If that is not selected during installation, one may manually add the install directory (e.g. C:\Program Files\CMake\bin) to the PATH in a command prompt. One may alternatively download and build CMake from source.
The default should be the most common and recommended choice. That ought to be the second one: "Add CMake to the system PATH for all users". In specialized cases where the administrator prefers one of the other options, they may certainly pick those.
Here is the main thread solution of this error https://stackoverflow.com/a/52564257/7060530
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With