CMake Error

Answered

I want to use the library 'dlib' for a face recognition app in Pycharm, but when I try to install the package I get the following error:

'CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage'.

I already installed CMake.

Can anyone help me solve this problem?

 

4 comments
Comment actions Permalink

Hi,

Please try to do "pip install dlib" outside of PyCharm, either globally or in virtual environment. Do you get the same error?

0
Comment actions Permalink

Tried to do it in the windows command line and got the following error: 

0
Comment actions Permalink

It appears this issue is not caused by IDE, since IDE just runs `pip install dlib` command in your environment. It can be caused by many reasons: missing library, version incompatibility between libraries, e.t.c., but anyways, it's related to pip package manager. I can say that I've reproduced the exact same error on my test machine, but don't have a solution yet.

As the most basic troubleshooting, please ensure you have cmake installed (pip install cmake), and that you have latest pip (python -m pip install --upgrade pip). After that run `pip install dlib` again.

If that doesn't help, I suggest seeking additional help in Python or stackoverflow communities, as someone might have encountered this issue already.

0
Comment actions Permalink

Guys open the Pycharm terminal and paste the following command to install DLIB -

pip install https://pypi.python.org/packages/da/06/bd3e241c4eb0a662914b3b4875fc52dd176a9db0d4a2c915ac2ad8800e9e/dlib-19.7.0-cp36-cp36m-win_amd64.whl#md5=b7330a5b2d46420343fbed5df69e6a3f

 

I hope this works for you. It worked for me. :) 

0

Please sign in to leave a comment.