Install Python 3.11 and VSCode

Thomas J. Kennedy

Contents:

1 Overview

Installing Python and VSCode will vary depending on whether you are on:

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:

  1. Navigate to the Python Downloads page.

  2. Scroll down to the Looking for a specific release? heading.

  3. Select the desired version of Python (3.11).

  4. Click Download.

  5. Scroll down to the Files heading.

  6. 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.

  1. Navigate to the Visual Studio Code home page.

  2. Click the download button that corresponds to your OS.

  3. Navigate to the VSCode Python extension page and follow the instructions under Installation.

  4. Navigate to the VSCode Python Guide and skip to the Create a Python source code file heading.

  5. Follow the instructions in that section (i.e., Create a Python source code file) and the following section (i.e., Run Python code).