Michael
Michael

Reputation: 39

visual studio python Python 2.7.18 instead of the new one ( 3.9.7)

I have encountered such a problem, that at visual studio i get always Python 2.7.18 instead the one I have at the terminal at my Mac.

I took all the steps to install Homebrew (Here is the guide i followed --> https://www.digitalocean.com/community/tutorials/how-to-install-and-use-homebrew-on-macos ), but nothing worked out.

Please help!

Thanks in advance

Upvotes: 1

Views: 702

Answers (1)

MingJie-MSFT
MingJie-MSFT

Reputation: 9437

To install Python using Homebrew on macOS use at the Terminal prompt. brew install python3

On macOS, make sure the location of your VS Code installation is included in your PATH environment variable. See these setup instructions for more information.

You can also try selecting the Python interpreter manually. "CTRL+SHIFT+P" and choose "Python: select interpreter".

enter image description here

Upvotes: 1

Related Questions