Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where should I install CMake?

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?

like image 246
idkidkidk Avatar asked Jan 29 '18 14:01

idkidkidk


People also ask

Where do you put CMake?

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.

Should CMake be on system path?

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.


1 Answers

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.

like image 123
Sayed Mohsin Reza Avatar answered Sep 28 '22 07:09

Sayed Mohsin Reza