1
Download the installer
Go to python.org/downloads. The website automatically detects that you are on Windows and presents a button for the latest stable release. Click it to download the
.exe installer to your Downloads folder.2
Run the installer and check 'Add to PATH'
Open the downloaded
.exe file. Before you click anything else, look at the bottom of the first installer screen — you will see a checkbox labelled “Add python.exe to PATH”.Check that box. It is unchecked by default.Once the box is checked, click “Install Now” (not “Customize installation” unless you have a specific reason to change defaults).3
Approve the UAC prompt
Windows will ask: “Do you want to allow this app to make changes to your device?” Click Yes. This grants the installer the permissions it needs to write to
Program Files and update your system PATH.4
Wait for installation to complete
The installer typically finishes in one to two minutes. When you see the “Setup was successful” screen, click Close.
5
Open Windows Terminal
Press Windows + R, type
wt, and press Enter. Alternatively, search for Terminal in the Start menu and open it.Windows Terminal is the modern shell host for Windows. It can run PowerShell, Command Prompt, or other shells. If you don’t have it, search for Command Prompt or PowerShell instead — the Python commands below work in all three.
6
Verify your installation
In the terminal, run:You should see the version number you just installed, for example:Also verify that
pip (the package manager) is available:7
Test the Python interpreter
Launch the Python REPL (interactive interpreter) by typing:You will see the Run your first Python command:To exit the interpreter:Or press Ctrl + Z then Enter.
>>> prompt:PATH setup explained
When you check “Add python.exe to PATH”, the installer adds two directories to your system’sPath environment variable:
python.exe itself. The second contains pip.exe and other command-line tools installed with packages. Without both entries, the python and pip commands won’t be found in your terminal.
Troubleshooting
'python' is not recognized as a command
'python' is not recognized as a command
This means Python was not added to PATH. You have two options:Quick fix — try the Permanent fix — reinstall with PATH checked:
py launcher, which Windows installs separately:- Open Settings → Apps and uninstall Python.
- Download the installer again from python.org.
- This time, check “Add python.exe to PATH” before installing.
- Close and reopen your terminal after installation.
- Search for “Edit the system environment variables” in the Start menu.
- Click Environment Variables.
- Under User variables, double-click Path.
- Click New and add:
Replace
<YourName>with your Windows username andPython313with your actual version folder. - Click OK on all dialogs, then close and reopen your terminal.
Typing 'python' opens the Microsoft Store
Typing 'python' opens the Microsoft Store
Windows 10/11 includes a stub that redirects
python to the Microsoft Store when the real Python isn’t on your PATH. Disable it:- Open Settings → Apps → Advanced app settings → App execution aliases.
- Turn off both Python-related aliases.
- Install Python from python.org and ensure PATH is set.
pip by default) that will cause problems later in the course.Permission denied during installation
Permission denied during installation
Right-click the installer
.exe file and select “Run as administrator”. This resolves most permission errors during installation.If you see permission errors when running Python commands later, open Windows Terminal as administrator: right-click the Terminal icon in the taskbar → Run as administrator.Windows Defender or SmartScreen blocks the installer
Windows Defender or SmartScreen blocks the installer
The Python installer is signed by the Python Software Foundation, so this warning is a false positive. When SmartScreen shows a warning:
- Click “More info”.
- Click “Run anyway”.
Managing multiple Python versions
Managing multiple Python versions
Windows installs a tool called the Python Launcher (Run a specific version:Set a default version by creating a
py) that lets you run specific versions side by side.List all installed versions:py.ini file in your home folder (C:\Users\<YourName>\):Next steps
Continue to VS Code Introduction
Install and configure Visual Studio Code as your Python editor.