tensorflow-aarch64
tensorflow-aarch64 copied to clipboard
Tensor flow for Docker on Mac M1 pro
would this wheel work on M1 pro Docker , tried but it does not import tensor flow and result in no module found error.
=> [internal] load build definition from HelloWorld.dockerfile 0.0s
=> => transferring dockerfile: 410B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/python:3.9 0.4s
=> [1/9] FROM docker.io/library/python:3.9@sha256:4c41af7a9e87a725aa0dd3857ceb51d0deea8923ceb362aa38eaa5e525a23a21 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 68B 0.0s
=> CACHED [2/9] RUN python -m pip install --upgrade pip 0.0s
=> CACHED [3/9] RUN pip install tensorflow==2.6.0 -f https://tf.kmtea.eu/whl/stable.html 0.0s
=> CACHED [4/9] RUN pip install pandas 0.0s
=> CACHED [5/9] RUN pip install matplotlib 0.0s
=> CACHED [6/9] RUN pip install -U scikit-learn scipy matplotlib 0.0s
=> CACHED [7/9] RUN pip install nltk 0.0s
=> CACHED [8/9] COPY intent.json / 0.0s
=> CACHED [9/9] ADD TrainChatBot.py / 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:31d4858dc926f4663b4c0dbdf7c61ccff4ae26d7b449b913e96f600d3ce82d55 0.0s
(base) karthik@192 Documents % docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
Any updates on this?
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Looks like you were pulling an x86
image instead of aarch64
.
And I'm afraid that Apple M1 does not perfectly runs wheels built for Linux, and I would strongly advise you to try the official wheels for M1 (though I haven't tried personaly).