Homebrew: "Python location" not pointing to a virtual environment
See original GitHub issueDescription
“Python location” was added to the output of --version
for the VSCode extension to pick up and use as the entry point for loading the command tree, documentation and completion proposals (#2986). That depends on “Python location” pointing to a virtual environment with all the CLI’s modules in it. When installing on Mac through Homebrew that is not the case and the VSCode extension does not work.
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: Homebrew on Mac
CLI Version: What version of the CLI and modules are installed? (Use az --version
)
Answer here: 2.0.18
OS Version: What OS and version are you using?
Answer here: Mac OS Sierra
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: zsh
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (14 by maintainers)
Top GitHub Comments
Had a similar problem with homebrew installed az. Python 3.6 was installed but not linked correctly by homebrew. The problem was fixed by doing brew link --overwrite python3
I will submit a PR to https://github.com/Microsoft/vscode-azurecli with a fix shortly.