I’m following this help page: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server
I’m running Windows 10 and Python 3.7.8. I created a folder where I want a test environment. Then I changed the directory in the command prompt to that folder and ran the command to start up the server.
C:UsersjpilbeamTestEnvironment>python3 -m http.server
But it didn’t work:
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
The alternative port also did not work:
python3 -m http.server 7800
Source: Windows Questions