Azure-cli: Homebrew Installed Azure CLI not working - /usr/local/bin/az: line 6: python3: command not found

Created on 2 Apr 2018  Â·  2Comments  Â·  Source: Azure/azure-cli

installed azure-cli via homebrew , no matter what az command I run , I get this error.

eg.

/usr/local/bin/az: line 6: python3: command not found

some more info :

```brew info azure-cli
azure-cli: stable 2.0.30 (bottled), HEAD
Microsoft Azure CLI 2.0
https://docs.microsoft.com/cli/azure/overview
/usr/local/Cellar/azure-cli/2.0.30 (11,302 files, 56.6MB) *
Poured from bottle on 2018-04-02 at 11:35:12
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/azure-cli.rb
==> Dependencies
Required: openssl ✔, python ✔
==> Options
--HEAD
Install HEAD version
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d

PackaginHomebrew

Most helpful comment

Thanks for the direction.
managed to solve it with brew uninstall --ignore-dependencies python and then brew update && brew install python

All 2 comments

Is python3 available on the machine?
Try brew doctor to check brew.
Also, possibly you may need to do brew link python if python3 still isn't found.

Thanks for the direction.
managed to solve it with brew uninstall --ignore-dependencies python and then brew update && brew install python

Was this page helpful?
0 / 5 - 0 ratings