Install Libomp - Homebrew is not being found on my terminal

1k Views Asked by At

Im trying to install libomp on my mac using the following command: brew install libomp

But everytime I get an error like this:

Warning: No available formula with the name "libomp".
==> Searching for similarly named formulae and casks...
Error: No formulae or casks found for libomp.

I already uninstall and install Homebrew twice, uninstall/install and updated the lightgbm package, and nothing seems to work. I was able to install other packages so is not a problem with my computer or anything like that.

Does anyone know how can I fix that?

1

There are 1 best solutions below

4
James Lamb On

Run the following to ensure your Homebrew is up to date.

brew update

Then install libomp like this

brew install libomp

and updated the lightgbm package

I'm not sure if this means the lightgbm Python package, the lightgbm CLI installed via Homebrew, or something else...but either way, the presence of those things should not impact whether or not Homebrew is able to install libomp on your system.