Fix for macOS pip3 install fails
Purp1eW0lf opened this issue · 1 comments
Purp1eW0lf commented
macOS install can trip up on lightgbm install section. Folks failing to install should try the following in this order:
pip3 install Cmake
#requires brew
brew install libomp
pip3 install lightgbm
#then install stringsfter
pip3 install stringsifter
gleeda commented
If you still have issues installing this on macOS, it might be that it's installing under the wrong version of python. You can check this like so:
% cat `which pip3`
#!/usr/local/opt/python@3.11/bin/python3.11
[snip]
% which python3
/usr/bin/python3
To get around this, you can run the pip statements like this instead:
python3 -m pip install Cmake
#requires brew
brew install libomp
python3 -m pip install lightgbm
#then install stringsfter
python3 -m pip install stringsifter