Python Concepts/Introduction and Setup/Windows Installation

These instructions will help you install Python on a Windows machine, and is part of the ../ lesson.

Checking for an Existing Python Installation
Python does not usually come bundled with Windows machines, but it's still worth checking. Open the shell of your choice (either Command Prompt or Powershell) and type. Compare your output to the cases outlined below:

If the command outputs "Python 3.x" (version number >= 3.0):
Example: Python 3.10.5 You already have a recent version of Python installed! Return to the lesson.

If you get "command not recognized" or similar:
Example: 'python' is not recognized as an internal or external command, operable program or batch file. You don't have Python installed. Continue to Installation.

If the command outputs "Python 2.x" (version number < 3.0):
Example: Python 2.7.18 This is where things get complicated. See, you have Python 2 installed, but that's an obsolete version that is no longer supported. Try typing  instead. If that gives you a version above 3.0, return to the lesson. If not, install Python as normal below.

Downloading
Head to Python's download page for Windows and download the latest installer for Python 3. (64-bit installer if your computer can support it, 32-bit installer if your computer cannot.)

Installing
Run the downloaded  file and install Python. Very Important: On the first screen, check the box next to "Add Python 3.X to PATH." All of the other default settings are fine. Once the installation is complete, open your shell up again and run  (or  ). You should have Python installed now!

Return to ../