The new Python Installation Manager (PIM) will soon become the official tool for managing Python installations on Windows, picking up where the ‘py’ launcher left off. PIM addresses the long-standing weakness of not being able to manage installed versions of Python.
Here’s a quick guide to getting started with PIM:
To install PIM, you can use the Microsoft Store app or download it directly from the official Python website. You can also use the WinGet package manager by typing `winget install 9NQ7512CXL7T`.
PIM replaces the ‘py’ launcher and provides a central way to manage installed versions of Python and choose which version to use when launching Python.
To see available Python versions, type `py list`. To add or remove versions, use the following commands:
* `py install
* `py uninstall
You can also set the default Python version by using an environment variable or configuring Windows app execution aliases.
Note that some existing aliases, such as `pythonw` and `pyw`, are still available.
Source: https://www.infoworld.com/article/4001983/get-started-with-the-new-python-installation-manager.html