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.

Homebrew: "Python location" not pointing to a virtual environment

See original GitHub issue

Description

“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

/cc @derekbekoe @chrisdias

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
JetPac33commented, Nov 13, 2017

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

0reactions
derekbekoecommented, Mar 6, 2018

I will submit a PR to https://github.com/Microsoft/vscode-azurecli with a fix shortly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I use brew installed Python as the default Python?
Homebew no longer shadows the system installation of python. You can do: export PATH="/usr/local/opt/python/libexec/bin:$PATH" source: discourse.brew ...
Read more >
Python - Homebrew Documentation
When you brew install formulae that provide Python bindings, you should not be in an active virtual environment. Activate the virtualenv after you've...
Read more >
Install python and handle virtual environments on MacOS
Advanced way, but better - install with Homebrew $ brew. Master way for developer - install different versions of python via manager pyenv....
Read more >
Setting up python environment in macOS using Homebrew ...
If a particular project needs a different python version, then install that version first (if not installed already), navigate to the project folder,...
Read more >
Installing Python 3 on Mac OS X
You do not need to install or configure anything else to use Python 2. ... insert the Homebrew directory at the top of...
Read more >

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