PlainError

'python' is not recognized as an internal or external command, operable program or batch file

Last checked 2026-10-26 · 3 fixes · reviewed answer

TL;DRThe command prompt cannot find the Python program because it is either not installed or its location is not listed in the system's PATH environment variable.

Most likely cause: Python is not installed on the computer

Try first: Check if Python is already installed (where python)

Likely causes

  1. Python is not installed on the computermost likely
  2. Python is installed but was not added to the PATH during installationmost likely
  3. The command prompt window was opened before Python was added to PATHpossible

How to fix it

Safest first: SafeChanges settingsDangerous
  1. Check if Python is already installedSafe

    Open a new Command Prompt and type the command below to see if Python can be found in a different way.

    where python
  2. Restart Command Prompt after PATH changeSafe

    Close any open Command Prompt windows and open a new one so it picks up the updated PATH.

  3. Install Python and add it to PATHChanges settings

    Download the latest Python installer from the official website, run it, and make sure the checkbox 'Add Python to PATH' is selected before clicking Install.

If that didn't fix it

Open System Properties, go to Environment Variables, and manually add the Python installation folder (usually C:\Python or C:\Users\YourName\AppData\Local\Programs\Python\PythonXX) to the Path variable.

When to see a technician

Consult a technician if you are unsure about editing environment variables or if Python needs to be installed for a specific project requirement.

Quick answers

What does 'python' is not recognized as an internal or external command, operable program or batch file mean?
The command prompt cannot find the Python program because it is either not installed or its location is not listed in the system's PATH environment variable.
What causes 'python' is not recognized as an internal or external command, operable program or batch file?
Python is not installed on the computer. (most likely) Python is installed but was not added to the PATH during installation. (most likely) The command prompt window was opened before Python was added to PATH. (possible)
How do I fix 'python' is not recognized as an internal or external command, operable program or batch file?
Try these in order, safest first: 1. Check if Python is already installed. 2. Restart Command Prompt after PATH change. 3. Install Python and add it to PATH.
What if that didn't fix it?
Open System Properties, go to Environment Variables, and manually add the Python installation folder (usually C:\Python or C:\Users\YourName\AppData\Local\Programs\Python\PythonXX) to the Path variable.
When should I see a technician?
Consult a technician if you are unsure about editing environment variables or if Python needs to be installed for a specific project requirement.
Did this fix it? Report a problem

Related errors

All Coding errors →