Install Python 3.11 and VSCode
Thomas J. Kennedy
1 Overview
Installing Python and VSCode will vary depending on whether you are on:
- Windows
- macOS
- Linux (and by distro)
Most of this lab will be on following steps from the official Python site or Microsoft’s VSCode guides.
2 Python Interpreter
If you already have Python installed… check the version. If you do not have Python 3.11 or newer… you will need to install a newer interpreter.
2.1 Python on Windows & macOS
If you are on Windows or macOS:
-
Navigate to the Python Downloads page.
-
Scroll down to the Looking for a specific release? heading.
-
Select the desired version of Python (3.11).
-
Click Download.
-
Scroll down to the Files heading.
-
Select the version of Python that corresponds to your Operating System (OS).
-
If you are on Windows… you will most likely want Windows installer (64-bit)
-
If you are on macOS… you will most likely want macOS 64-bit universal2 installer
-
2.2 Python on Linux
If you are on Linux… check your distro’s package manager.
3 VSCode
The first step to setting up is to install the base editor.
-
Navigate to the Visual Studio Code home page.
-
Click the download button that corresponds to your OS.
-
Navigate to the VSCode Python extension page and follow the instructions under Installation.
-
Navigate to the VSCode Python Guide and skip to the Create a Python source code file heading.
-
Follow the instructions in that section (i.e., Create a Python source code file) and the following section (i.e., Run Python code).