Azure / MachineLearningNotebooks

Python notebooks with ML and deep learning examples with Azure Machine Learning Python SDK | Microsoft
https://docs.microsoft.com/azure/machine-learning/service/
MIT License
4.01k stars 2.49k forks source link

Error installing azureml-sdk in Docker #1820

Closed shaleenb closed 1 year ago

shaleenb commented 1 year ago

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.

jeff-shepherd commented 1 year ago

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

shaleenb commented 1 year ago

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.