Resolve Microsoft Store Launches When Calling Python on Windows - DevPops-Inc/windows GitHub Wiki

• The following resolution is for if the Microsoft Store launches whenever you call Python from a command line.
image

• Press the Windows key, type “apps” and select “Open.”
image

• Scroll down to Python, select it and click “Uninstall.”
image

• Select “Uninstall” again.
image

• Close “Apps & features.”
image

• Go to https://www.python.org/downloads/ in a web browser and select “Download Python < latest version >.”
image

• Select the Python installer after it finishes downloading.
image

• Select “Add python.exe to PATH” then click “Install Now.”
image

• Select “Close.”
image

• Press the Windows key, type “powershell” and select “Run as administrator.”
image

• Type python and press the Enter key to sanity check the installation.
image

• Type exit() or quit() and press the Enter key to exit the Python interactive shell.
image

• Type New-Item -ItemType file python3.ps1 and press the Enter key to create an python3.ps1 file.
image

• Type notepad python3.ps1 and press the Enter key to open the python3.ps1 file in the Notepad application.
image

• Type "python."
image

• Expand the “File” menu and select “Save” or press the Ctrl and S keys to save.
image

• Close the Notepad application.
image

• Press the Windows key, type “env” and select “Open.”
image

• Select “Environment Variables…”
image

• Select “Path” in the “User variables for < user >” window and click “Edit.”
image

• Select “New.”
image

• Type “C:\Windows\System32\python3.ps1”.
image

• Press “Move Up” multiple times until “C:\Windows\System32\python3.ps1” is at the top.
image

• Select “OK.”
image

• Select “OK” again.
image

• Select “OK” again.
image

• Return to PowerShell, type python3 and press the Enter key to you will get into the Python interactive shell without the Windows Store launching this time around.
image

⚠️ **GitHub.com Fallback** ⚠️