docker-scikit-learn icon indicating copy to clipboard operation
docker-scikit-learn copied to clipboard

Error loading shared library libgomp.so.1: No such file or directory

Open allways opened this issue 4 years ago • 4 comments

I use "docker run -it --rm -p 8888:8888 -v $PWD:/code smizy/scikit-learn:0.22.2.post1-alpine" to run this image locally (windows10). But when I ran "from sklearn.linear_model import LinearRegression" in Notebook for the first time, this occurred:

ImportError: Error loading shared library libgomp.so.1: No such file or directory (needed by /usr/lib/python3.8/site-packages/sklearn/utils/_openmp_helpers.cpython-38-x86_64-linux-gnu.so)

Is the libgomp not included in the alpine which here used?

allways avatar Jul 02 '21 22:07 allways

@allways Thank you for reporting. I have pushed fixed image smizy/scikit-learn:0.22.2.post1-alpine-r1. Please give it a try.

smizy avatar Jul 03 '21 09:07 smizy

@allways Thank you for reporting. I have pushed fixed image smizy/scikit-learn:0.22.2.post1-alpine-r1. Please give it a try.

Strange, I download the image again but the error is still there. image image

allways avatar Jul 06 '21 20:07 allways

@allways Use smizy/scikit-learn:0.22.2.post1-alpine-r1 instead of smizy/scikit-learn:0.22.2.post1-alpine. Missing r1

smizy avatar Jul 08 '21 05:07 smizy

Ran into the same error, tried using the fixed image smizy/scikit-learn:0.22.2.post1-alpine-r1. It works. Thank you!

jussihuotari avatar Sep 16 '21 11:09 jussihuotari