Windows 11: Installing Python 3.x


There are several ways to install and manage Python on your machine. The simplest option is sourcing Python directly from the Python Software Foundation website. If you are new to Python and unfamiliar with package managers this install guide is written for you.

⚠️ If you are an Anaconda and/or Chocolatey user, this install guide is not for you. The teaching team assumes that you are familiar with managing your Python installation utilizing a package management system invoked from a command line interface (CLI) such as Command Prompt, PowerShell or Git Bash. As is noted below we recommend that you run the latest stable version of Python supported by Ananconda or Chocolatey.

1.0 Check for previous install

First, confirm whether or not Python is installed on your machine.

1.1 Open Command Prompt

Click the Search button on the taskbar and enter “Command Prompt” or “cmd” in the search input box. The search results should return the Command Prompt app. Open the Command Prompt app (you can also select “Run as administrator” to open the app with admin privileges).

Windows 11 search for Command Prompt

1.2 Check if Python 3.x is installed

❗ the latest stable release in the Python 3.x series is Python 3.13.1. You can also run Python 3.12.x or 3.11.x if already installed.

At the prompt, type python --version and then press Enter. If Python is installed the version number will be returned:

C:\Users\arwhyte> python --version
Python 3.13.1

Otherwise, the message “Python was not found . . . .” will be returned.

C:\Users\arwhyte> python --version
Python was not found . . . .

Type “exit” at the prompt and then press the Return key to close the Command Prompt.

1.3 Running older versions of Python

If Python 3.11.x or 3.12.x is installed on your machine (where “.x” equals an incremental version number, e.g., 3.13.1) you do not need to upgrade to the latest stable verison of Python for this class. That said, we encourage you to run the latest stable release in order to leverage the latest improvements to the language.

If you are running an earlier version of Python 3 you can remove it by clicking the search button on the taskbar and entering “add or remove” or “uninstall” in the search input box. Open “Add or remove programs”. Scroll down the list of installed apps and when you reach Python, click on it and then click the “Uninstall” button. Also uninstall the Python Launcher.

2.0 Download and install Python 3.x

Once you’ve checked your machines for previous Python installs, visit the Python Software Foundation website and download the lastest stable Python 3.x release.

❗ Installing Python 3.x is straightforward but involves clicking a checkbox during the installation process that ensures the Python environment variables are added to the PATH variable. Clicking the checkbox is a critically important step; failure to configure the install process properly will require manually adding the environment variables (not fun) or deleting the Python install and starting over.

2.1 Download Python 3.x

Hover over “Downloads” on the blue menu bar. Your macOS operating system version should have been detected on the page load and the link to the Python 3.13.1 release package displayed as a grey button. Click the grey button to download the install package.

Download Python from the Python Software Foundation

2.2 Install Python 3.x

Before clicking the "Install Now" box you MUST click the checkbox "Add python.exe to PATH". Selecting this option ensures that the necessary Python environment variables are added during the installation process.

Windows Python install click add Path

Adding Python to the PATH variable ensures that you can call python directly from the Command Prompt or PowerShell. If you fail to click the checkbox you (or likely your friendly instructor or GSI) will need to set your Python environment variables manually. Manually adding Windows environment variables is tedious work.

Do this:

  1. Click the “Add python.exe to PATH” checkbox

  2. Click “Install Now”

  3. Click the “Yes” button to allow the installer to make changes to the system.

At the end of the installation process you have the option to disable the 260 max character path length limit. I opted to disable it.

2.3 Confirm installation

Restart Command Prompt and confirm that Python 3 has been installed successfully.

C:\users\arwhyte> python --version
Python 3.13.1

3.0 Source code editor

The Python installer also installs Python’s Integrated Development and Learning Environment (IDLE). The IDLE app provides a multi-window text editor, interactive shell window, search/replace, and debugger. It is one of several text editors that you can use to write and test Python code. However, we do not use it.

Instead, we use Microsoft’s popular (and free) Visual Studio Code which serves as the default source code editor for this course. See the relevant companion guide for installation instructions.