- 1 year ago
Given below is error while installing dlib in python 3.6.6. I am using command "python setup.py install" inside dlib 19.15 folder in windows 10.
It looks like you are facing an error while installing dlib
in Python 3.6.6 on Windows 10. The error message you provided indicates that the compilation of C++ code for dlib
is failing.
To successfully install dlib
, you need to ensure that you have all the necessary build tools and dependencies installed on your system.
Here are the steps you can follow to resolve the issue:
Install Visual Studio:
dlib
requires a C++ compiler to build the C++ extensions. You can download and install Visual Studio Community edition, which includes the required build tools.Download link: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Install CMake:
dlib
also uses CMake to generate build files. Make sure you have CMake installed on your system.Download link: https://cmake.org/download/
Set Environment Variables: Ensure that both Visual Studio and CMake are added to the system's PATH environment variable.
Upgrade setuptools and wheel: Make sure you have the latest versions of setuptools and wheel installed by running the following command:
csspip install --upgrade setuptools wheel
Try to install dlib again: After installing the required build tools and dependencies, try running the installation command again:
arduinopython setup.py install
If you still encounter errors, please check the exact error message and traceback for more specific details on the issue. It's possible that there may be other missing dependencies or configuration issues.
Note: If you find the installation process complex, you can also consider using pre-compiled binary wheels for dlib
by using the following command:
pip install dlib
This will automatically download and install the appropriate pre-compiled binary wheel for your system, saving you from having to build it from source.
Remember to activate your virtual environment (if you are using one) before installing dlib
.