From Command Line
-
Install Git for Windows, CMake (3.8 or higher) and VS Build Tools (VS Build Tools is not needed if Visual Studio (2015 or newer) is already installed).
-
Run the following commands:
git clone --recursive https://github.com/microsoft/LightGBM cd LightGBM mkdir build cd build cmake -A x64 .. cmake --build . --target ALL_BUILD --config Release
The .exe
and .dll
files will be in LightGBM/Release
folder.
注意事项:1,最好下载VS 2017以后的版本(社区版已足够),需要安装C++编译器(勾选上 “使用c++的桌面开发”)和