Ich versuche, numpy in einem Docker-Container basierend auf Alpine 3.1 zu installieren. Ich verwende den folgenden Dockerfile:Installieren von numpy auf Docker Alpine
FROM alpine:3.1
RUN apk add --update make cmake gcc g++ gfortran
RUN apk add --update python py-pip python-dev
RUN pip install cython
RUN pip install numpy
Diese feine bis pip install numpy
läuft, wenn ich die folgende Fehlermeldung erhalten:
error: Command "gcc -fno-strict-aliasing -Os -fomit-frame-pointer -DNDEBUG -Os -fomit-frame-pointer -fPIC -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -c build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.c -o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.o" failed with exit status 1
easy_install-2.7 numpy
gibt den gleichen Fehler.
Gibt es irgendwelche Config/Installationsschritte, die ich vermisse?
Dies funktioniert, aber leider das ist numpy für Python 2.7. Wir benötigen eine Version für 3.5 – leonprou
Als Update müssen Sie überall zu '@ community' anstelle von' @ testing' wechseln, z. 'py-numpy @ community' und' @community http: // dl-cdn.alpinelinux.org/alpine/rande/community' –
Ich habe alles in diesem Post einschließlich @ James-Endicott Bild unten versucht und die Installation stürzt immer um NumPy. Auch versucht https://github.com/WattyAB/docker.alpine.numerical-python, die leider nicht funktioniert. Wird nur mit einem 650MB Bild leben. – cardamom