Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightgbm inside docker libgomp.so.1: cannot open shared object file

I have LightGBM installed in my mac and tested earlier for a different project.

Now I am inside a docker with python 3.6 on my mac. As soon as I add import lightgbm as lgbm in my Flask application, I get error

OSError: libgomp.so.1: cannot open shared object file: No such file or directory

What is going on? Can anyone please suggest?

like image 808
nad Avatar asked Mar 15 '26 13:03

nad


1 Answers

This worked for me, include it in your dockerfile

RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN apt-get -y install curl
RUN apt-get install libgomp1

Source: https://github.com/microsoft/LightGBM/issues/2223#issuecomment-499788066

like image 90
Vignesh Venkataraman Avatar answered Mar 17 '26 02:03

Vignesh Venkataraman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!