I want to install dlib using pip install dlib using cmd in windows 10 But it is showing following three errors: CMake Error in CMakeLists.txt: Generator
I have just encountered the same problem yesterday and looked up many resources. And at last I solved it by installing Visual Studio 2017, choosing C++-related component, because it needs the C++ compiler to build the dlib.
I am on windows 10, python 3.5, pip 10
dlib didn't work even after installing cmake.
Solution :
Then install using pip
:
pip install dlib==19.4
Works like a charm.
After windows October update, the above method works, but sometimes there are errors like boost error
and cmake incompatible
.
so,
pip install dlib
or
pip install dlib==19.4
I had the same problem. Installing dlib
from .whl
worked.
pip install https://pypi.python.org/packages/da/06/bd3e241c4eb0a662914b3b4875fc52dd176a9db0d4a2c915ac2ad8800e9e/dlib-19.7.0-cp36-cp36m-win_amd64.whl#md5=b7330a5b2d46420343fbed5df69e6a3f
See this post: https://stackoverflow.com/a/49538054/9524424
I met the same problem with you, and it has been solved after installing Visual Studio C++.
you can also go this link (dlib.whl) and download .whl version of dlib and use this command to install it
pip install .\dlib-19.8.1-cp36-cp36m-win_amd64.whl
but you should replace name of the file in above command with any file that you have downloaded
First of all, delete CMakeCache.txt file. Later, just execute inside dlib-xx/build the command below:
cmake -G "NMake Makefiles" ..
If you have more problems with CMAKE_C_COMPILER and CMAKE_CXX_COMPILER, you will have to install MinGW and add to the enviroment variable the path /bin of MinGW.
And if you don't have installed Visual Studio, you would to resolve future problems