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.