Error Codes Wiki

Python Not Recognized — Windows PATH Configuration and Installation Errors

Warningapplication

About Python Not Recognized

Fix 'python is not recognized as an internal or external command' on Windows by configuring PATH environment variable and Python installation settings. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.

Here are the key things to understand: Windows does not include Python by default — it must be installed separately. The Python installer has an 'Add Python to PATH' checkbox that is unchecked by default. Multiple Python installations (2.7, 3.x, Anaconda, Windows Store) can conflict. The Windows Store Python app may shadow the installed Python version. pip, python3, and py launcher have different PATH requirements. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.

The most common reasons this occurs include: Python not added to PATH during installation (checkbox was not checked). Multiple Python versions installed with conflicting PATH entries. Windows Store Python app alias redirecting the 'python' command. System PATH changes not taking effect in already-open terminal sessions. Identifying the root cause is the first step toward finding the right solution.

To resolve this, follow these recommended steps: Check if Python is installed: open Settings > Apps > search for 'Python'. Add Python to PATH manually: System Properties > Environment Variables > Path > add C:\Users\[you]\AppData\Local\Programs\Python\Python3xx\ and its Scripts subfolder. Disable Windows Store Python alias: Settings > Apps > App execution aliases > turn off Python entries. Use the Python Launcher: 'py' command works without PATH modification (installed with Python 3.3+). Restart your terminal after PATH changes — existing terminals keep the old PATH. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.

This article is part of our Windows Error Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.

Quick Answer

Should I use python or python3 on Windows?

Use 'py' (Python Launcher) which automatically selects the right version. If using python directly, on Windows 'python' and 'python3' both point to Python 3.x if only one version is installed.

Overview

Fix 'python is not recognized as an internal or external command' on Windows by configuring PATH environment variable and Python installation settings.

Key Details

  • Windows does not include Python by default — it must be installed separately
  • The Python installer has an 'Add Python to PATH' checkbox that is unchecked by default
  • Multiple Python installations (2.7, 3.x, Anaconda, Windows Store) can conflict
  • The Windows Store Python app may shadow the installed Python version
  • pip, python3, and py launcher have different PATH requirements

Common Causes

  • Python not added to PATH during installation (checkbox was not checked)
  • Multiple Python versions installed with conflicting PATH entries
  • Windows Store Python app alias redirecting the 'python' command
  • System PATH changes not taking effect in already-open terminal sessions

Steps

  1. 1Check if Python is installed: open Settings > Apps > search for 'Python'
  2. 2Add Python to PATH manually: System Properties > Environment Variables > Path > add C:\Users\[you]\AppData\Local\Programs\Python\Python3xx\ and its Scripts subfolder
  3. 3Disable Windows Store Python alias: Settings > Apps > App execution aliases > turn off Python entries
  4. 4Use the Python Launcher: 'py' command works without PATH modification (installed with Python 3.3+)
  5. 5Restart your terminal after PATH changes — existing terminals keep the old PATH

Tags

pythonpathnot-recognizedinstallationenvironment

Related Items

More in Application

Frequently Asked Questions

Use 'py' (Python Launcher) which automatically selects the right version. If using python directly, on Windows 'python' and 'python3' both point to Python 3.x if only one version is installed.