Skip to content Skip to sidebar Skip to footer

Why I'm Getting This Error "check The Logs For Full Command Output" When I'm Installing Dlib?

I'm trying to install dlib on vertual studio code but the following error is displayed: Running setup.py install for dlib ... error ERROR: Command errored out with exit status

Solution 1:

The error is obvious from the error message you got:

You must use Visual Studio to build a python extension on windows. If you are getting this error it means you have not installed Visual C++. Note that there are many flavors of Visual Studio, like Visual Studio for C# development. You need to install Visual Studio for C++.

You need to install *Visual Studio for C++ from here and rerun the installation so that the C++ extension to Python can get built.

You can avoid that using Anaconda where the dlib package is available already compiled (but for the moment not for Python 3.9).


Solution 2:

you can use the following method to avoid installing the "Huge" IDE (VS) or the Anaconda.

Many binaries depend on Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 for Python 3

so, please try to use the following codes to solve it

pip install --upgrade setuptools

if you are not succeed to solve this problem,

then you can try to use this link The latest supported Visual C++ downloads to install this problem


Post a Comment for "Why I'm Getting This Error "check The Logs For Full Command Output" When I'm Installing Dlib?"