If I simply do:
import lightgbm as lgb
I\'m getting
python script.py
Traceback (most recent call last):
File \"script.py\", li
On MacOS High Sierra with MacPorts installed, I did the following:
clang-5.0
using MacPorts/build
directory, run
cmake -DCMAKE_CXX_COMPILER=clang++-mp-5.0 -DCMAKE_C_COMPILER=clang-mp-5.0 ..
/python_package
directory and modify the setup.py
script.
You need to modify the function compile_cpp()
at the very end that checks the case for other OS (including Mac). Before the silent_call(...)
, add the following two lines:
cmake_cmd.append("-DCMAKE_CXX_COMPILER=clang++-mp-5.0")
cmake_cmd.append("-DCMAKE_C_COMPILER=clang-mp-5.0")
sudo python setup.py install
. Enjoy