question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install Azure CLI ML extension - Failed to delete 'C:\Users\xxx\.azure\cliextensions\ml': [WinError 3] The system cannot find the path specified: 'C:\\Users\\xxx\\.azure\\cliextensions\\ml'.

See original GitHub issue

Describe the bug I can successfully install the Azure CLI ML extension v1 via az extension add --name azure-cli-ml.

If I try the same (and azure-cli-ml is not installed) for az extension add --name ml I get Failed to delete 'C:\Users\xxx\.azure\cliextensions\ml': [WinError 3] The system cannot find the path specified: 'C:\\Users\\xxx\\.azure\\cliextensions\\ml'

To Reproduce Install ML extension via az extension add --name ml

Expected behavior The extension is being installed.

Environment summary Windows 11 Python: 3.10.4 Azure CLI: 2.35.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
diondrapeckcommented, Apr 18, 2022

Note that Python 3.9+ is not supported for any of the existing v2 CLI releases, so this installation failure is expected behavior.

You can get a working installation by creating a Python 3.6, 3.7 or 3.8 environment and installing inside there.

  1. conda create -n cli_v2 python=3.7 # or 3.8 or 3.6
  2. conda activate cli_v2
  3. pip install azure-cli
  4. az extension add -n ml
1reaction
dr-dolittlecommented, Apr 21, 2022

@RakeshMohanMSFT I uninstalled Python 3.10. und installed 3.8. and can now successfully install the ml extension. Not sure whether this is because of the downgrade of the version or something of the ml extension has been updated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found