PlainError

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings

Updated 2026-11-30 · 6 fixes · expanded guide with sources · how we write fixes

TL;DROn Windows, typing python or python3 runs a small Microsoft Store shortcut (an 'App execution alias') when no real Python comes first on your PATH. This message means that shortcut ran: either Python isn't installed, or it is installed but its folder isn't on PATH, so Windows found the placeholder instead.

Most likely cause: Python is installed but its folder isn't on PATH (the 'Add python.exe to PATH' box was left unticked), so the Store alias wins

Try first: See which python Windows is running (where python)

Likely causes

  1. Python is installed but its folder isn't on PATH (the 'Add python.exe to PATH' box was left unticked), so the Store alias winsmost likely
  2. Python isn't installed at all on this PC or for this userpossible
  3. The terminal or editor was opened before Python was installed and still has the old PATHpossible

Why this happens

Windows 10 (since version 1903) and Windows 11 ship two tiny files, python.exe and python3.exe, in your user WindowsApps folder. They exist so that typing python on a fresh PC opens the Microsoft Store page instead of failing. Because WindowsApps is on PATH, these placeholders run whenever no real Python appears earlier in PATH.

So the message doesn't mean Python is broken. It means Windows picked the placeholder. Putting your real Python first on PATH, or turning the aliases off, fixes it.

Common situations

How to fix it

Safest first: SafeChanges settingsDangerous
  1. See which python Windows is runningSafe

    In Command Prompt, where shows every python.exe in PATH order. If the first line is ...\AppData\Local\Microsoft\WindowsApps\python.exe, that's the Store alias, not a real Python.

    where python
  2. Try the py launcherSafe

    If you installed Python from python.org, the py launcher is usually on PATH even when python isn't. If this prints a version, Python is installed and only PATH needs fixing; you can also just use py instead of python.

    py --version
  3. Install Python if you don't have itChanges settings

    Download the current Windows installer from python.org (Downloads > Windows) and run it; if it offers 'Add python.exe to PATH', tick it. Alternatively install from the Microsoft Store or with winget (search lists the Python.Python.3.x IDs; install the newest). Any of these works, but use one source to avoid two copies.

    winget search --id Python.Python
  4. Turn off the Store aliasesChanges settings

    Settings > Apps > Advanced app settings > App execution aliases (Windows 10: Apps > Apps & features > App execution aliases). Turn off 'App Installer python.exe' and 'App Installer python3.exe'. Now python runs your real install, or gives a clear 'not recognized' error if PATH is still wrong.

  5. Add Python to PATH if it's installed but not foundChanges settings

    Find the install folder (py -0p lists installed Pythons and their paths). Then Start > 'Edit environment variables for your account' > Path > Edit > New, and add that folder and its Scripts subfolder, for example C:\Users\you\AppData\Local\Programs\Python\Python313\ and ...\Python313\Scripts\. Move them above WindowsApps if both are listed.

    py -0p
  6. Open a new terminal and checkSafe

    PATH changes only apply to windows opened afterwards. Close every terminal and your editor (VS Code too), open a new one, and confirm. In VS Code, also pick the interpreter: Ctrl+Shift+P > Python: Select Interpreter.

    python --version

If that didn't fix it

If python still runs the wrong program, run where python again in a brand-new terminal and remove or reorder the PATH entries above your real install.

When to see a technician

On a managed work PC where you can't install software or edit PATH, ask IT to install Python for you.

Questions people ask

Should I install Python from the Microsoft Store or python.org?
Either works for learning and scripts. python.org (or winget) is more common for development and gives you the py launcher. Pick one and avoid having both.
Is it safe to turn off the App execution aliases?
Yes. They're only shortcuts to the Store. Turning them off changes nothing else and can be undone in the same settings page.
Why does python3 still fail after I fixed python?
The python.org installer doesn't create python3.exe. Turn off the python3.exe alias and use python or py, or update scripts to call python.

Sources

Did this fix it? Report a problem

Related errors

All Coding errors →