dlib installieren

Probleme bei der Installation?
Antworten
p.holzknecht
User
Beiträge: 3
Registriert: Dienstag 14. November 2017, 12:43

Hallo,
ich bekomme dlib in Python nicht installiert.
Mit dem Befehl pip install dlib bekomme die Fehlermeldung das auf cmake nicht zugegriffen werden kann.
cmake ist aber installiert und der Systempath ist mit D:\CMake\bin ist gesetzt und wird auch bei cmd gefunden bzw. gestartet.
Was mache ich verkehrt.
Vielleicht kann mir hier jemand helfen.

Liebe Grüße von der Ostsee
Peter
p.holzknecht
User
Beiträge: 3
Registriert: Dienstag 14. November 2017, 12:43

Unter Windows 7
p.holzknecht
User
Beiträge: 3
Registriert: Dienstag 14. November 2017, 12:43

Hier die Fehlermeldung, die ich beim Aufruf von PIP oder bei der setup.py im dlib-Verzeichnis bekomme:
--------------------------------------------------------------------------------------------------------
D:\dlib>python setup.py install
running install
running bdist_egg
running build
Detected Python architecture: 32bit
Detected platform: win32
Removing build directory D:\dlib\./tools/python/build
Configuring cmake ...
-- Building for: NMake Makefiles
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error in CMakeLists.txt:
The CMAKE_C_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error in CMakeLists.txt:
The CMAKE_CXX_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "D:/dlib/tools/python/build/CMakeFiles/CMakeOutput.log".
See also "D:/dlib/tools/python/build/CMakeFiles/CMakeError.log".
error: cmake configuration failed!
-----------------------------------------------------------------------------------------------------

Peter
__deets__
User
Beiträge: 14480
Registriert: Mittwoch 14. Oktober 2015, 14:29

Dein Problem ist nicht cmake - sondern ein fehlender C++ Compiler.
Antworten