how to check if python is installed windows

Check if Python is Installed on Windows — Quick Guide

By
AD

Verifying whether Python is installed on a Windows machine is a fundamental step for any developer setting up a new environment or troubleshooting an existing workflow. This process is straightforward, but it requires understanding the specific commands and locations to check. This guide walks through the most reliable methods to confirm your Python installation status.

Using the Command Prompt

The most immediate way to check for Python is through the Command Prompt, which interacts directly with your system's PATH environment variable. This method tells you if the executable is globally accessible.

Executing the Version Check

Open Command Prompt by pressing Win + R, typing cmd, and hitting Enter. Once the terminal window appears, type the following command and press Enter:

AD
How to Install Python on Windows - Beginner friendly
How to Install Python on Windows - Beginner friendly
I tried to find out the character string that was mosaicked with 'Depix' that can easily disable mosaic processing
I tried to find out the character string that was mosaicked with 'Depix' that can easily disable mosaic processing
How to Setup Python Environment Variables In Windows 10
How to Setup Python Environment Variables In Windows 10
CommandDescription
python --versionChecks the Python version if the executable is in PATH.

If Python is installed and configured correctly, the terminal will display the version number (e.g., Python 3.12.1). If you encounter an error stating "'python' is not recognized as the name of a cmdlet," it indicates that either Python is not installed or the installation path was not added to the system environment variables.

Checking the Python Executable Path

Sometimes, Python might be installed but not added to the system PATH, making the global command unavailable. In this scenario, you can locate the installation directory manually to verify its existence.

How to Install Python 3.13.4 on Windows 11/10
How to Install Python 3.13.4 on Windows 11/10
Installing Python on Windows
Installing Python on Windows
How to Install Python on Windows 10 Fast and Easy – Full Guide for Beginners
How to Install Python on Windows 10 Fast and Easy – Full Guide for Beginners

Standard Installation Locations

By default, the Windows Python installer places files in a specific directory structure. You should look in the following locations:

  • C:\PythonXX (where XX is the major and minor version, e.g., C:\Python39)
  • C:\Users\YourUsername\AppData\Local\Programs\Python\PythonXX
  • C:\Users\YourUsername\AppData\Local\Programs\Python\PythonXX-32 (for 32-bit installations on 64-bit systems)

Open File Explorer and paste one of these paths into the address bar. If the folder contains subdirectories named Scripts and Lib, it is a strong indicator of a valid Python installation.

AD

Verifying Installation via PowerShell

PowerShell offers a more modern alternative to Command Prompt and provides additional cmdlets for querying software. Using it ensures compatibility with newer Windows features.

GIMPで画像生成AIを使えるようにしてNPUでの処理も可能にするOpenVINOプラグイン「OpenVINO AI Plugins for GIMP」レビュー
GIMPで画像生成AIを使えるようにしてNPUでの処理も可能にするOpenVINOプラグイン「OpenVINO AI Plugins for GIMP」レビュー
5 Steps To Installing PIP on Windows for Python
5 Steps To Installing PIP on Windows for Python
How to install Python 3 on Windows: A Comprehensive Step-by-Step Guide
How to install Python 3 on Windows: A Comprehensive Step-by-Step Guide
How to Add Python to PATH on Windows 11 (Step-by-Step Guide) - Tech2Geek
How to Add Python to PATH on Windows 11 (Step-by-Step Guide) - Tech2Geek
How to Install Python 3 on Windows 10
How to Install Python 3 on Windows 10
How to Install and Use pip for Python 3.12 on Windows 10/11: A Step-by-Step Guide
How to Install and Use pip for Python 3.12 on Windows 10/11: A Step-by-Step Guide

PowerShell Commands

Right-click the Start button and select "Windows PowerShell" or "Terminal." You can use the same command as in Command Prompt:

python --version

Alternatively, you can use the Get-Command cmdlet to find the path of the Python executable:

AD
Get-Command python

This command returns the full path to the Python executable, confirming its location and whether it is actively linked in the current session.

I tried using 'You-Get', an open source tool that allows you to download videos, images, and music from many sites such as YouTube and X for free
I tried using 'You-Get', an open source tool that allows you to download videos, images, and music from many sites such as YouTube and X for free
7 Hidden Python Tips
7 Hidden Python Tips
How to Set Up Python on Windows 10 - Make Tech Easier
How to Set Up Python on Windows 10 - Make Tech Easier
How to Install Pip on Windows
How to Install Pip on Windows
Easy Ways to Check Python Version in Windows CMD
Easy Ways to Check Python Version in Windows CMD
Your Python Coding Environment on Windows: Setup Guide – Real Python
Your Python Coding Environment on Windows: Setup Guide – Real Python
5 Ways to Send Secret Messages Like a Spy on Windows - Make Tech Easier
5 Ways to Send Secret Messages Like a Spy on Windows - Make Tech Easier
How to install python in windows in 2026 #python #beginnerfriendly
How to install python in windows in 2026 #python #beginnerfriendly
Run Python in CMD on Windows (Beginner-Friendly Guide)
Run Python in CMD on Windows (Beginner-Friendly Guide)
How to Check Python Version - Windows, Mac, and Linux Guide - SmashingApps.com
How to Check Python Version - Windows, Mac, and Linux Guide - SmashingApps.com
🔧 How to Install and Download Python on Windows – Python for Beginners Tutorial | 2026
🔧 How to Install and Download Python on Windows – Python for Beginners Tutorial | 2026
7 Common Python Mistakes to Avoid
7 Common Python Mistakes to Avoid
How to Set Up Python the Right Way (2025 Beginner Guide)
How to Set Up Python the Right Way (2025 Beginner Guide)

Checking the Windows Registry

For advanced users or those troubleshooting complex installations, the Windows Registry stores entries for installed software, including Python.

Registry Keys

Navigate to the following key in the Registry Editor (regedit):

AD
  • HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore

Under this key, you will find subkeys corresponding to each installed version. Expanding these keys reveals the installation path, allowing you to verify the exact location of the binaries without relying on environment variables.

Differentiating Between Versions

It is crucial to understand the difference between Python 2 and Python 3, as Windows systems might have legacy installations of the former. Python 2 reached end-of-life in 2020, but checking ensures you are using the correct interpreter.

Resolving Ambiguity

Running python --version might return Python 2.x if that was the last version linked to the python command. To specifically check for Python 3, use:

CommandDescription
py --listLists all installed Python versions.
py -3 --versionForces the use of the Python 3 interpreter.

The py launcher is the official recommendation for managing multiple Python versions on Windows and provides a reliable layer for version control.

AD