MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

Error installing azureml-sdk in Docker

Open shaleenb opened this issue 2 years ago • 1 comments

I have azureml-sdk installed in my local environment with python 3.9. However, when I try to install it inside a Docker image, the installation fails.

Here is a minimal reproducible Dockerfile.

FROM python:3.9

RUN pip install azureml-sdk

I have tried downgrading to python 3.8 as well as using older versions of pip.

shaleenb avatar Sep 19 '22 08:09 shaleenb

@shaleenb I was able to successfully build the Dockerfile that you listed on a Compute Instance. What error message did you get?

jeff-shepherd avatar Sep 19 '22 21:09 jeff-shepherd

It ended up being an issue with Docker on Apple SIlicon. Adding the target platform for the base image (FROM --platform=linux/x86_64 python:3.9) fixed the issue for me.

shaleenb avatar Oct 02 '22 19:10 shaleenb