-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fail to install python pandas package on alpine image 3.7.2-alpine3.9 #381
Comments
Alpine Linux doesn't support PEP 513, every time we install packages on Alpine Linux we need re-building. You could try this below:
|
As I say initially it build on |
His Dockerfile has the wrong The issue is I would advise using $ docker images | grep python
python 3.7.2-alpine3.9 2d23e3e6584b 3 days ago 86.7MB
python slim 96c349a2897f 3 days ago 143MB
python slim-pandas 7612a34bbac1 2 minutes ago 293MB
python alpine-pandas d0b3edf1be62 6 minutes ago 435MB $ docker history python:slim-pandas
IMAGE CREATED CREATED BY SIZE COMMENT
7612a34bbac1 13 minutes ago /bin/sh -c pip3 install pandas 149MB
. . .
$ docker history python:alpine-pandas
IMAGE CREATED CREATED BY SIZE COMMENT
d0b3edf1be62 17 minutes ago /bin/sh -c apk add --no-cache python3-dev li… 348MB
. . . |
sorry the FROM just a typo, fixed. |
Closing since this question seems sufficiently answered, thanks @tao12345666333 for the Dockerfile |
Minimal reproduce:
Which lead to error:
Problem similar with tag
3.7.2-alpine3.8
too.That works as expected with
3.7.2-slim
! Like:The text was updated successfully, but these errors were encountered: