问题
Today when I tryed to run a simple code on Sublime Text 3, the following message appeard:
Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640
And when I type Python in CMD, it opens the Windows Store for me to download Python 3.7. This problem started today for no good reason, I didn't change or downloaded anything about Python and already tryied reinstalling Python, and the Path is correct.
回答1:
Two solutions:
As ChipJust said it may be possible to use "py" as the new alias for python in Windows10.
As explained here https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update/, use the search bar to find "Manage App Execution Aliases". There should be two aliases for python, see image, unselect them, which will allow the usual python aliases "python" and "python3"
回答2:
As a person who does Python development in Sublime Text, I know you said the python path was correct but when you install python make sure to tick the option to add Python to PATH.
I had the same issue back in the day til I did this.
回答3:
Just download python from there website(https://www.python.org/downloads/) and install
Note- Remember to select Add python to path
来源:https://stackoverflow.com/questions/58754860/cmd-opens-window-store-when-i-type-python