Solvedsocial_mapper CMake must be installed to build the following extensions: dlib

Hi friends,

I am trying to install it but i got this error. However, I already got the newest cmake version installed. That's why I do not understand the trigger...

RuntimeError:
   *******************************************************************
    CMake must be installed to build the following extensions: dlib
   *******************************************************************
   
   
   ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-P0mUba/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-CDESaD-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-P0mUba/dlib/

Do you have a hint ?

Thanks 😄

PS:

$whereis cmake 
cmake: /usr/lib/x86_64-linux-gnu/cmake /usr/lib/cmake /usr/share/cmake /opt/cmake/bin/cmake
14 Answers

✔️Accepted Answer

I ran into this issue as well. I am using OS X 10.13 and have a Python virtual environment that I am installing the requirements to.

I ran pip install cmake and re-ran pip install -r requirements.txt and I no longer received the error.

Other Answers:

@clem9669, you should install or update these requirements.
sudo apt-get install python python-pip build-essential cmake pkg-config libx11-dev libatlas-base-dev libgtk-3-dev libboost-python-dev -y

For windows - pip install cmake
Works for me as well