01-05-2021



Mac Visual Studio Python -->

A Python virtual environment should be created for the VS Code workspace. Python should be upgraded on macOS to the desired version which you want to use in the VS Code workspace. Here in my case it’s 3.8.5. Steps to upgrade Python in workspace. Launch the Visual Studio Code python workspace. Check the current python virtual environment version. With Python installed and your local programming environment set up, open Visual Studio Code. Inside of Visual Studio Code, open the directory you’re working in by going to File- Open and selecting the directory. After that, you’ll see your folder open in the explorer window on the left.

Note

Mac Visual Studio Python Tutorial

Visual

Visual Studio Community Edition Python

Mac Visual Studio Python

Python support is presently available only on Visual Studio for Windows; on Mac and Linux, Python support is available through Visual Studio Code.

  1. Download and run the latest Visual Studio installer for Windows (Python support is present in release 15.2 and later). If you have Visual Studio installed already, run the Visual Studio installer and go to step 2.

    Tip

    The Community edition is for individual developers, classroom learning, academic research, and open source development. For other uses, install Visual Studio Professional or Visual Studio Enterprise.

  2. The installer presents you with a list of workloads, which are groups of related options for specific development areas. For Python, select the Python development workload and select Install:

  3. To quickly test Python support, launch Visual Studio, press Alt+I to open the Python Interactive window, and enter 2+2. If you don't see the output of 4, recheck your steps.

Next step

See also