-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Error loading shared library libopenblas.so.3: No such file or directory #218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I didn't change much on your Dockerfile, and the resulting image is about 303 MB: FROM python:3.5-alpine
RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/edge/community" >> /etc/apk/repositories
RUN apk add --no-cache \
ca-certificates \
openblas
RUN apk add --no-cache --virtual .build-deps \
gcc \
g++ \
openblas-dev \
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
&& pip3 install --no-cache-dir --disable-pip-version-check \
numpy==1.11.0 \
pandas==0.18.0 \
scipy==0.13.3 \
&& apk del .build-deps |
it's work! thanks.. |
I am getting the same error ImportError: Error loading shared library libopenblas.so.3: No such file or directory (needed by /usr/local/lib/python3.5/site-packages/numpy/core/multiarray.cpython-35m-x86_64-linux-gnu.so) ubuntu: 16.04 my dockerfile is like below: FROM python:3.5-alpine COPY ./requirements.txt /app/requirements.txt COPY ./webapp /app/webapp ENTRYPOINT ["python3"] please suggest something have been stuck for a long time |
Because alpine does not support dynamic libraries, i suggest use FROM python:3.5 as base image |
I have tried the above method but it's saying |
These sorts of questions/requests would be more appropriately posted to the Docker Community Forums, the Docker Community Slack, or Stack Overflow. |
my dockerfile :
in step 2: RUN apk add --update openblas-dev build sucessful,but image have 500MB,
Because alpine does not support dynamic libraries? how can i reduce image size, thank l lot!!
The text was updated successfully, but these errors were encountered: