environments responsibleai vision ubuntu20.04 py38 cpu - Azure/azureml-assets GitHub Wiki



AzureML Responsible AI Vision environment.

Version: 62


OS : Ubuntu20.04 Training Preview

View in Studio: https://ml.azure.com/registries/azureml/environments/responsibleai-vision-ubuntu20.04-py38-cpu/version/62

Docker image: mcr.microsoft.com/azureml/curated/responsibleai-vision-ubuntu20.04-py38-cpu:62

Docker build context


FROM mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04:20240712.v1
# Install OpenCV native dependencies
RUN apt-get update
RUN apt-get install -y python3-opencv
RUN apt-get remove -y libavutil56 libswresample3 libavformat58
RUN apt-get remove -y libavcodec58 libswscale5 libopenexr24 libpmix2

ENV AZUREML_CONDA_ENVIRONMENT_PATH /azureml-envs/responsibleai-vision

# Prepend path to AzureML conda environment

# Create conda environment
COPY conda_dependencies.yaml .
RUN conda env create -p $AZUREML_CONDA_ENVIRONMENT_PATH -f conda_dependencies.yaml -q && \
    rm conda_dependencies.yaml && \
    conda run -p $AZUREML_CONDA_ENVIRONMENT_PATH pip cache purge && \
    conda clean -a -y

RUN conda list
# Conda install and pip install could happen side by side. Remove crypytography with vulnerability from conda
RUN conda remove cryptography

RUN pip install --pre 'azure-ai-ml' 'azure-storage-blob<=12.13.0'

# Install azureml packages
RUN pip install 'azureml-core==1.56.0' \
                'azureml-mlflow==1.56.0' \

RUN pip install 'azureml-dataset-runtime==1.56.0' \

RUN pip install 'shap==0.41.0' \
                'scikit-learn>=1.5.1' \
                'interpret-community==0.31.0' \
                'Pillow>=10.3.0' \
                'setuptools>=65.5.1' \
                'numpy==1.22.0' \
                'scipy==1.10.0' \
                'statsmodels==0.14.0' \

# azureml-dataset-runtime[fuse] upper bound for pyarrow is 11.0.0
# so we install pyarrow in extra step to avoid conflict
RUN pip install 'pyarrow>=14.0.1'

# To resolve vulnerability issue regarding crytography
RUN pip install 'cryptography>=42.0.4'

# To resolve vulnerability issue
RUN pip install 'Werkzeug>=3.0.3' \
                'tqdm>=4.66.3' \

RUN pip freeze

# This is needed for mpi to locate libpython
⚠️ **GitHub.com Fallback** ⚠️