Unexpected errors while running python process

I recently start getting the error below each time I open up some python modules in atom. I can still run the modules through the terminal but some installed packages e.g isort is not working because of the error prompt.

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