Search code examples
pythongitlightgbm

LightGBM Installation Issues - Python


I am following the Installation guide found at https://github.com/Microsoft/LightGBM/wiki/Installation-Guide to install LightGBM. In the MinGW shell, I am able to download the git repo, and then cd into the build directory. When I try try the following command:

 cmake -G "MinGW Makefiles" ..

I get the following error:

CMake Error at C:/Program Files/CMake/share/cmake-
3.9/Modules/CMakeMinGWFindMake.cmake:12 (message):
sh.exe was found in your PATH, here:

 C:/Program Files/Git/usr/bin/sh.exe

 For MinGW make to work correctly sh.exe must NOT be in your path.

 Run cmake from a shell that does not have sh.exe in your PATH.

 If you want to use a UNIX shell, then use MSYS Makefiles.

 Call Stack (most recent call first):
 CMakeLists.txt:8 (PROJECT)


 CMake Error: CMake was unable to find a build program corresponding to 
 "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to 
 select a different build tool.
 CMake Error: CMake was unable to find a build program corresponding to " 
 MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to 
 select a different build tool.
 CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
 CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
 -- Configuring incomplete, errors occurred!

I also tryed removing the sh.exe from my path.

Can anyone point me to a possible solution? I am guessing I installed cmake incorrect?


Solution

  • A simple solution presented itself:

    pip install lightgbm
    

    problem solved