Azure CLI error for installing ml extension

Moein Sahraei 10 Reputation points
2024-03-03T15:14:11.8266667+00:00

Hi dear microsoft. Today I tried to add machine learning extension to azure CLI using the suggested code below. I have the lastest CLI version and my extension list is completely empty but every time I try it gives me the error : "Pip failed with status code 1". How can I solve this? thank you

az extension add -n ml
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,574 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VasimTamboli 4,415 Reputation points
    2024-03-03T19:53:49.79+00:00

    Hello,

    First please upgrade you version using below command

    az upgrade --yes

    once done use below full command -

    pip install azure-cli-ml

    Refer below article for your reference

    https://learn.microsoft.com/en-us/cli/azure/azure-cli-extensions-overview

    Please accept as answer to close the thread.

    0 comments No comments