Python was not found; run without arguments to install from Microsoft Store

Total
0
Shares

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.

Solution

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 –

C:\Users\akash\AppData\Local\Programs\Python\Python37
C:\Users\akash\AppData\Local\Programs\Python\Python37\Scripts

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

Windows Settings -> Manage App Execution Aliases

Check for the Python shortcut and disable it.

Solution 2

Install Python from installer at Python.org and check Add to Path while installing.

Conclusion

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.