ImportError: No module named 'dlib'

wimpykids96 picture wimpykids96 · Oct 16, 2018 · Viewed 15.8k times · Source

I followed the step how to install dlib python on Windows and it works on CMD but in Python's IDE it said ImportError: No module named 'dlib'

Answer

RedBall picture RedBall · May 12, 2020

There are 3 important steps to make it work.

  1. Install Cmake Cmake download Link and add Path environment variable to its bin eg: C:/ProgramFiles/cmake/bin

  2. Download Visual Studio Built Tools which will be around 4.56 GB Visual Studio Built Tools Link

  3. Then use cmd to install dlib using

pip install dlib

This will do the job....