how to fix CMake Error in CMakeLists.txt: Generator NMake Makefiles does not support platform specification, but platform x64 was specified

后端 未结 8 2380
情书的邮戳
情书的邮戳 2020-12-05 10:46

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

8条回答
  •  Happy的楠姐
    2020-12-05 11:12

    The easiest way is to install MS Visual Studio Community Edition, and select Visual C++ (install anything else you want but they are all optional except C++). This will install CMake and the correct compiler and libs in the correct locations.

    • Download the latest Dlib.
    • CD into the Dlib folder.
    • Make sure the Dlib/build folder is empty ( rm -r -force .\build* )
    • Run: python .\setup.py install

    If you get an error, post back here. You are probably missing a dependency or ENV variable.

提交回复
热议问题