Why do I get "Python was not found; run without arguments to install from the Microsoft Store" when I try to run Python on Windows?

Question:

This is what I get while trying to run Python. Any suggestions?

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

I’m currently doing the CS50 course on Visual Studio Code and at this point "python hello.py", it gives me that message can anyone help?

Asked By: 710isaiah

||

Answers:

You need to install Python. Windows comes with dummy python executables python.exe and python3.exe that take you to the microsoft store to install it- after which it is a real python executable instead of a dummy one. You can either follow those instructions (run without args to download from Windows Store), or download Python from Python’s website: https://www.python.org/downloads/.

Answered By: user
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.