pip install face_recognition giving error

限于喜欢 提交于 2019-12-13 11:26:37

问题


RuntimeError:


CMake must be installed to build the following extensions: dlib



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


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/52332268/pip-install-face-recognition-giving-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!