Install CMake (3.16 or higher):
brew install cmake
# On MacOS 11 M1 - Apple Silicon
ibrew install cmake
Install OpenMP:
brew install libomp
# On MacOS 11 M1 - Apple Silicon
ibrew install libomp
If it's already installed, uninstall lightgbm:
pip uninstall lightgbm
# or
pipenv uninstall lightgbm
Run the following commands:
git clone --recursive --branch v3.2.0 --single-branch --depth 1 https://github.com/Microsoft/LightGBM
cd LightGBM/python-package
python3 setup.py install
cd ../..
rm -rf LightGBM