Solve the pop-up of windows app store by running Python under win10 command line

Time:2021-10-24

preface

  • A few days ago, in order to experience the new version of edge, we updated win10, and then ran the python command. As a result, we jumped out of the win10 store (black question mark???)

way

  • So I checked the environment variables and found that there was no problem with the configuration. I suspected that win10 set a variable, which caused my Python to be overwritten, so I ran it in CMD
    where python
  • Output:
    C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\python.exe
    D:\Develop\Program Files\Python\Python38\python.exe
  • Isn’t this windowsapps a win10 store? When did you add it to me? I checked it online. It should be the environment variable configured by the win10 store to facilitate users to download Python from Microsoft Store. I don’t need this, so I went to the environment variable and put my Python directory priority before the priority of windowsapps

    Solve the pop-up of windows app store by running Python under win10 command line
  • Put the python directory first

    Solve the pop-up of windows app store by running Python under win10 command line
  • Restart CMD, ojbk

    Solve the pop-up of windows app store by running Python under win10 command line

    %% here is the resolution variable. You can set it in the front, and then add% before and after the variable name in the path directory to resolve it

    Solve the pop-up of windows app store by running Python under win10 command line

    Solve the pop-up of windows app store by running Python under win10 command line

    PS: the win10 update has changed all the variables I set into paths. These are also the ones I just added. They are obsessive-compulsive disorder. They will not be updated in the future

This work adoptsCC agreement, reprint must indicate the author and the link to this article