The complete error looks like this –
➡️ Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
The error says everything about the solution – If you are installing Python on Windows system then check if path is set in environment variables and disable shortcut from Manage App Execution Aliases Settings.
Step 1: Check if Python is installed in your system.
Step 2: Check which version is installed and which version you are trying to access. For example – Python3 but installed Python 2.
Step 3: Check if multiple versions are installed. Try to keep a single version in your system, if possible.
Step 4: Check if Python is set as PATH in environment variables. If it is not set then add these two paths –
Change Python37 with your version of Python. If the path is different in your system then use that.
Keep the path in System variable.
Step 5: Go to Settings -> Manage App Execution Aliases
Check for the Python shortcut and disable it.
Install Python from installer at Python.org and check Add to Path while installing.
Installing Python on Windows may lead to Python no found error. The solution is to either install it from official website using installer and checking add to path option or add path manually. You may also need to disable Python shortcut from Manage App Execution Aliases setting in Windows.