1. 安装python3
2. 安装cmake:sudo apt-get install cmake
3. 安装lightgbm:根据文档安装
git clone --recursive https://github.com/microsoft/LightGBM
4. 编译lightgbm
cd LightGBM
mkdir build
cd build
cmake ..
make -j4
编译过程中出现importerror "No Module named Setuptools"错误,需要把Setuptools安装一下
sudo apt-get install python-setuptools
python 3.x 安装命令:
sudo apt-get install python3-setuptools
apt-get命令出现错误
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been