Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Dlib installation on Windows

kwea123 edited this page Oct 16, 2019 · 1 revision

I encountered many errors when trying to install dlib on windows, here I list some of the resolutions.

  1. First make sure Visual Studio (>2015) is installed and updated to the latest version.
  2. Try pip install dlib. If it fails, do the next step.
  3. Go to some directory and do git clone https://github.com/davisking/dlib.git.
  4. cd dlib and mkdir build and cd build.
  5. cmake .. -G "Visual Studio 19 2017 Win64" -T host=x64. Replace the year with your Visual Studio year.
  6. After the build complete (assuming no errors), mkdir lib.win-amd64-3.6 inside the build folder.
  7. cd .. then python setup.py install.
  8. Dlib should be successfully installed.
Clone this wiki locally