编译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