Error Codes Wiki

Python Not Recognized — Windows PATH Configuration and Installation Errors

Warningapplication

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.