pip install face_recognition giving error

前端 未结 4 1081
不知归路
不知归路 2021-01-29 13:53

RuntimeError:


CMake must be installed to build the following extensions: dlib



Failed building wheel for dlib Running setup.py clean for dlib

4条回答
  •  臣服心动
    2021-01-29 14:35

    I also had the same issue. For those who deals with it now -

    Firstly you have to install visual studio, and than install there the extension "tools for CMake". Look at the installation part here: https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=vs-2019

    Only after that you will be able to pip install this package.

    So:

    1. Install VS
    2. Install the extension "tools for CMake"
    3. Of course you should also have the python interpreter installed
    4. In the command line:
      • pip install CMake
      • pip install face_recognition

    Edit: Not checked, but if you don't have Visual Studio installed, try install "CMake Tools" separately, maybe from here: https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools

提交回复
热议问题