Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named 'dlib'

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'

like image 359
wimpykids96 Avatar asked Oct 16 '18 06:10

wimpykids96


2 Answers

Follow these steps

Install CMAKE

pip install cmake

Then Install dlib

pip install dlib
like image 89
Sudheer Muhammed Avatar answered Jan 03 '23 23:01

Sudheer Muhammed


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....

like image 29
RedBall Avatar answered Jan 03 '23 23:01

RedBall