Free | No tracking | Every fact with a source|German and English

Error / Installation

'python' is not recognized or opens the Microsoft Store

Windows can’t find an installed Python or redirects the command to the Microsoft Store.

The message

'python' is not recognized as an internal or external command, operable program or batch file. … (deutsch: Der Befehl "python" ist entweder falsch geschrieben oder konnte nicht gefunden werden.) – oder es öffnet sich der Microsoft Store

Affects: Python, ComfyUI, AUTOMATIC1111 Stable Diffusion WebUI, Stable Diffusion WebUI Forge, TextGen (text-generation-webui), InvokeAI

Why is this happening?

Either Python isn’t installed at all, or the installation folder isn’t in PATH. Windows also has so-called app execution aliases: if no real Python is registered, the python command opens the Store. After an installation, an already open terminal often doesn’t know the new paths yet.

How to fix it

  1. First check whether you even need your own Python: portable packages (for example ComfyUI Portable) and launchers like Stability Matrix or Pinokio bring their own Python.
  2. Close all terminals, open a new one, and test py --version and python --version.
  3. If Python isn’t installed: install the official “Python install manager” from the Microsoft Store or from python.org/downloads (both are identical). After that, python, py, and pymanager will work in a new terminal.
  4. If the Store still opens: click Start, search for “Manage app execution aliases,” and check that the aliases for “Python (default)” are turned on. If they’re already on, turn them off and back on once.
  5. Check the environment variables (Start, “Edit environment variables for this account”): PATH must include %UserProfile%\AppData\Local\Microsoft\WindowsApps.
  6. If you installed Python with the old installer from python.org, open Start > Installed Apps, select the Python version and “Modify,” and enable the option to add Python to PATH. Then open a new terminal.

Better not: Don’t copy python.exe into system folders like C:\Windows\System32, and don’t install multiple Python versions all over the place just to work around the problem.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.