-2

when I try to install dlib library via pycharm in python, I get this error. I updated pip but it didn't improve, I tried it in different python versions and I still get the error.enter image description here

I updated cmake, I updated pip, python 3.11

2 Answers2

1

Probably you don't have C++ Build Tools installed. Try installing it before cmake. In general, there is a good guide for this

Pete Jones
  • 36
  • 6
1

try these steps:

  1. Install CMake: Ensure that you have CMake installed on your system. If not, you can download and install it from the official website: https://cmake.org/install/

  2. Install Visual Studio (Windows): If you are using Windows, make sure you have Visual Studio with C++ support installed. click here to download

  3. Update pip: Ensure that you have the latest version of pip installed.

    pip install --upgrade pip

When done updating, try installing dlib again.

If you still encounter issues, you can try installing dlib from the master branch on GitHub by following the instructions in the README file.