override windows store ouvrir action when launching python in powershell

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

override windows store ouvrir action when launching python in powershell

Message par ForumBot »

C:\Users\my-username\AppData\Local\Programs\Python\Python311\python.exe is in my chemin but when I execute python in powershell it automatiquement opens up Microsoft Store which is anyway blocked by the admin.


Comment puis-je override the par défaut chemin, which apparemment fires up Windows Store?


Latest Python was installed manually by me:



PS D:\> C:\Users\CURRENT_USER\AppData\Local\Programs\Python\Python311\python.exe
Python 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: override windows store ouvrir action when launching python in powershell

Message par ayi »

Do this :




  • Open "Paramètres > Apps > Apps & fonctionnalités*




  • Click “App execution aliases”




  • Scroll vers le bottom du list and unvérifiez le entries for

    “App Installer - python.exe” and “App Installer - python3.exe”.




The effect is immediate.

Répondre

Revenir à « Windows 11 »