You installed Python from python.org, opened Command Prompt, and typed python. Instead of the Python prompt, the Microsoft Store opened on the Python page. Or you see the message “Python was not found; run without arguments to install from the Microsoft Store.” When Windows PAGODA127 RESMI 10 typing python opens Microsoft Store, Windows is using a shortcut called an app execution alias instead of your real Python.
Windows 10 includes small placeholder files named python.exe and python3.exe in a WindowsApps folder. They exist to help new users install Python from the Store. Because that folder appears early in the PATH list, typing python finds the placeholder before your real installation.
If your installer did not add Python to PATH, the placeholder is the only python Windows can find.
Turning off the aliases and checking PATH makes the command run your installed Python.
What Usually Triggers It
The Store opens for these reasons:
- App execution aliases for python.exe and python3.exe are turned on.
- Your Python installation was not added to the PATH variable.
- The WindowsApps folder appears before Python in PATH.
- Python was installed for another user only.
The py launcher, installed by python.org’s installer, often works even when python does not.
Installing Python from the Microsoft Store is a valid option too. In that case, the aliases point to the installed Store version, and typing python works normally.
First Steps to Try
Turn off the placeholder aliases.
- Open Settings > Apps > Apps & features.
- Select “App execution aliases.”
- Turn off “App Installer python.exe” and “App Installer python3.exe.”
- Close Command Prompt, open a new one, and type python –version.
- Try py –version as well, which uses the Python launcher.
If you now see “not recognized,” Python is installed but not in PATH.
If the Problem Continues
Fix the PATH entries.
- Find your Python folder, usually C:\Users\YourName\AppData\Local\Programs\Python\Python3x.
- Press Windows + R, type sysdm.cpl, open Advanced > Environment Variables.
- Edit Path under User variables and add the Python folder and its Scripts subfolder.
- Move them above %USERPROFILE%\AppData\Local\Microsoft\WindowsApps in the list.
- Open a new Command Prompt and test python and pip.
Alternatively, rerun the python.org installer, choose Modify, and tick “Add Python to environment variables.”
Protect Your Data First
Do not delete files from the WindowsApps folder; turn off the aliases instead. Download Python only from python.org or the Microsoft Store, never from mirror sites.
The Bottom Line
Typing python opens the Store because of app execution aliases. Turn off the python.exe aliases, add your Python folders to PATH ahead of WindowsApps, and use py as a reliable launcher.