No module named 'dlib'
Asked Answered
S

2

5

I am using windows 10 python 3.7.4

I have a code where it imports dlib

import dlib

But when I try to install it using pip install dlib it throws an error

ERROR : Command errored out with exit status 1 : 
......

I even tired installing cmake and This dlib file and tried to copy paste them into site-packages and tried

python setup.py install

It throws an error saying

CMake Error at CMakeLists.txt:3 (project):
      Failed to run MSBuild command:

What should be done to resolve this ??

Thanks to anyone who took time to read to this query and tired to solve this . Best of luck for your work :) ..

Sausauce answered 9/5, 2020 at 18:49 Comment(0)
S
5

I finally found it .. We need to install visual studio build tools for C++ which will be around 4.53 GB . Then by using

pip install dlib

It was installed easily.

Thanks anyway

Sausauce answered 11/5, 2020 at 14:19 Comment(0)
S
7

If you get a fail error when trying to install, try the following:

Install CMAKE

pip install cmake

Then Install dlib

pip install dlib
Shahjahanpur answered 18/1, 2021 at 5:12 Comment(0)
S
5

I finally found it .. We need to install visual studio build tools for C++ which will be around 4.53 GB . Then by using

pip install dlib

It was installed easily.

Thanks anyway

Sausauce answered 11/5, 2020 at 14:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.