CMD opens window store when I type python

喜你入骨 提交于 2019-12-22 10:29:05

问题


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:

  1. As ChipJust said it may be possible to use "py" as the new alias for python in Windows10.

  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!