編譯lightgbm
- 安裝 Visual Studio (2015 or newer).
- 下載 zip archive 並解壓.
- 進入VS工程目錄
cd LightGBM-master/windows
- 打開
LightGBM.sln
file with Visual Studio, 選擇Release
configuration and 點擊BUILD
(生成)->Build Solution(生成解決方案) (或者使用快捷鍵Ctrl+Shift+B)
. - If you have errors about Platform Toolset, go to
PROJECT
->Properties
->Configuration Properties
->General
and select the toolset installed on your machine.
The .exe
file will be in LightGBM-master/windows/x64/Release
folder.
安裝python package
cd LightGBM-master/python-package
python setup.py install --user
running install
INFO:LightGBM:Starting to compile the library.
INFO:LightGBM:Starting to compile with MSBuild from existing solution file.
WARNING:LightGBM:Compilation with MSBuild from existing solution file failed.
INFO:LightGBM:Starting to compile with Visual Studio 16 2019.
inference:
https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#id18