Hi Sintrias,
I met the same problem as yours. The following steps are how I fixed it.
I installed python with automatic setting. When I run 'where python' in command line, it showed two directories, one the common directory that has python.exe automatically installed and I want to use in future, but the other is possibly which causes problems. In my case it is 'C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python.exe'. This one has 0 byte size and always leads you to the Microsoft App Store.
There are two ways to solve it.
- Change the order of 'path' in system environment.
If your 'Microsoft-relate' python.exe is shown prior to your nomal 'python.exe' when you run 'where python' in cmd, you can just shift the correct directory to be above the incorrect one, so that when you call python in cmd, windows will find the correct position and won't go to Microsoft App Store.
- Or you can delete the 'Microsoft-relate' python.exe, by running cmd as administrator, and type in 'cd C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\python.exe', keep in mind xxx here is account name and you need use your own Microsoft directory, and enter.
Now you are in the working folder. Type in 'del python.exe', and enter. You solve it!
Yajun