How to reinstall the 'py' launcher on Windows?
02:42 14 Sep 2026

The (now deprecated) 'py' launcher can be installed via an option in the (also deprecated) Python Installer. It then appears as its own entry in Windows Settings > Apps > Installed Apps.

The 'Python Launcher' app entry in Windows Settings

I accidentally uninstalled the 'py' launcher in Settings. The obvious solution was to modify an existing python installation and add it. I clicked the three dots > Modify, which opened a 'Modify Setup' dialog.

Clicking the three dots then 'Modify', on a python installation in Windows Settings

The 'Modify Setup' dialog

The 'Optional Features' page of the 'Modify Setup' dialog, showing the greyed out 'install for all users' py launcher option.

However, in the 'Modify Setup' dialog, the option to install 'py' launcher 'for all users' is greyed out.

So: how does one reinstall the 'py' launcher on Windows after it has been uninstalled?

What I've tried:

1. Manually launching the dialog with admin privileges:

I located the popup dialog at C:\Users\\AppData\Local\Package Cache\{bdda61aa-57do-45c8-ae92-fa67d560e32f}\python-3.10.11-amd64.exe, then launched it via powershell -c start-process -verb runas python-3.10.11-amd64.exe.

The option remains greyed out, claiming it 'requires admin privileges'.

2. Uninstalling my existing Python 3.10, then reinstalling it, this time ticking the box to install 'py' launcher. This works, but it seems unnecessary.

In my opinion, it seems strange that the 'py' launcher is tied to a specific python installation, as it's just an exe (C:\Windows\py.exe).

Any advice is appreciated. I am unsure whether to raise this as a github issue.

python python-3.x python-install pylauncher