Skip to content

Installation of ML extension fails with pip error #16880

Description

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
When installing the Azure Machine Learning CLI extension, we see this error:
ERROR: An error occurred. Pip failed with status code 1. Use --debug for more information.

Using the debug flag we see an error from cryptography:
error: Can not find Rust compiler
Building wheel for cryptography (PEP 517): finished with status 'error'
ERROR: Failed building wheel for cryptography
and
pip._internal.exceptions.InstallationError: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

To Reproduce
Create a Dockerfile with these lines:
FROM mcr.microsoft.com/azure-cli
RUN az login
RUN az extension add -n azure-cli-ml

Expected behavior
ML CLI extension installs.

Environment summary
Using base mcr.microsoft.com/azure-cli image.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions