azure-cli: No module named 'azure'
See original GitHub issueI tried to install azure-cli
but ran into a ModuleNotFoundError
:
$ pipx install azure-cli
installed package azure-cli 2.0.64, Python 3.7.3
These binaries are now globally available
- az
- az.bat
- az.completion.sh
done! ✨ 🌟 ✨
$
$ az
/usr/bin/python: Error while finding module specification for 'azure.cli' (ModuleNotFoundError: No module named 'azure')
$ type az
az is hashed (/home/foo/.local/bin/az)
$ ls -l /home/foo/.local/bin/az
lrwxrwxrwx 1 foo foo 46 2019-05-13 14:44 /home/foo/.local/bin/az -> /home/foo/.local/pipx/venvs/azure-cli/bin/az
$ ls /home/foo/.local/pipx/venvs/azure-cli/lib/python3.7/site-packages/azure
batch cli common datalake graphrbac __init__.py keyvault mgmt multiapi profiles __pycache__ storage
The module appears to be here - is there something special about azure-cli
?
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
`No module named azure.cli` · Issue #3351 - GitHub
re-install of azure-cli does not fix the issue. OS: Ubuntu 14.04. Python: 2.7.13. Creating the missing _init.py file fixed the issue. touch $ ......
Read more >Ansible Runner fails with `No Module named Azure.cli`
Ansible Runner fails with `No Module named Azure.cli` ... I have azure-cli-core installed but the playbook fails when trying to import from ...
Read more >AWX/Ansible Tower - "No module named 'azure.cli.core.auth' "
I'm trying to install the Azure.Azcollection module on an AWX server, but encountering the following dependency error: TASK [List all keys in specific...
Read more >ModuleNotFoundError: No module named 'azure-cli'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'azure-cli' How to remove the ModuleNo.
Read more >"No module named 'azure.cli.core.auth' " : r/ansible - Reddit
I'm trying to install the Azure.Azcollection module on an AWX server, but encountering the following dependency error:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool, so I guess the issue itself can now be closed as the fix was on the package side 👍
This time it seems the issue was about cli extention. Fixed by updating extension. Thanks for your help!