Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Python not found' despite having been installed [duplicate]

I've installed Python's latest version. However, when I write in command prompts

python --version

I get:

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

I tried downloading it directly from the Microsoft Store, however, the problem with that was that I could not very easily create a path for it and ran out of skills.

Anyways I'm trying to get Robot Framework to run just for fun, I'm a complete beginner as you can probably see. What should I do to fix this?

like image 489
haileek Avatar asked Dec 04 '25 17:12

haileek


1 Answers

I had the same issue, it happed that i just had go to Windows settings and search for manage app Execution Aliases.

I had both python and python3 installed, so I turned off the one I didn't want to use. Then it worked fine. Seems like the both were under same name "App installer"

enter image description here

NOTE:
Comment from here

The python.exe and python3.exe app execution aliases are part of the Microsoft.DesktopAppInstaller UWP app. This application cannot be removed (the AppX package's NonRemovable property is true). Removing the python.exe and python3.exe files (actually NTFS reparse points) from %LOCALAPPDATA%\Microsoft\WindowsApps is functionally equivalent to toggling the app execution alias in the Settings app. Unfortunately, their removal is not noticed by the Settings app, as it uses its own persistence (via Windows.StateRepositoryPS.dll) to keep track of the toggle state.

like image 174
Afeez Avatar answered Dec 06 '25 08:12

Afeez