Windows now has more than one official way to get Python, and they do not agree on where files go. The Python install manager, the traditional python.org .exe installer, and the older per-version Microsoft Store packages produce different folder layouts, different command aliases, and different update behaviour. This guide maps each one, compares how python, py, and python3 behave under it, and gives you a migration checklist and a recommendation matrix for 2026.
Table of Contents
- What the Three Options Are in 2026
- Where Each Method Puts Python
- Command Behaviour for python, py, and python3
- Updates, Repairs, and Uninstalls
- Migrating to the Install Manager
- Which Method Should You Choose?
- Conclusion
What the Three Options Are in 2026
The Python install manager (the tool behind the py and pymanager commands) is the current official installer. It is a small app distributed as an MSIX package from python.org or the Microsoft Store, and it downloads and manages Python runtimes separately. The Python documentation on using Python on Windows describes it as the way to obtain Python from the CPython team, with python, py, and pymanager available after installation. It is also the replacement that PEP 773 proposed to unify the older installers, and that PEP notes the existing .exe installer and the old py.exe launcher were to be deprecated once the new tool shipped.
The traditional python.org installer is the full .exe setup program that installs a complete development kit, including headers, Tcl/Tk, IDLE, the test suite, and the legacy py.exe launcher. It is still what many tutorials describe, but it has a limited future: the release notes for Python install manager 26.4 state that "The traditional executable installer will stop being released with Python 3.16."
The Microsoft Store now has two roles. It is a recommended delivery channel for the install manager itself, and it also historically hosted separate per-version Python packages (for example, "Python 3.13") with their own sandboxed layout. Those per-version packages are documented through Python 3.13 and remain common on existing machines, but they are not the layout you get from a new install manager setup.
Where Each Method Puts Python
The install manager keeps the manager app, the runtimes, and the command aliases in separate places. Runtimes are per-user by default: the install manager's default configuration sets install_dir to %LocalAppData%\Python, with global alias executables in %LocalAppData%\Python\bin and a download cache in %LocalAppData%\Python\_cache. Each runtime gets its own subdirectory under that root, with its own Scripts folder. The manager app itself is an MSIX package, so Windows stores its program files in the protected C:\Program Files\WindowsApps\ location, and its commands appear through app execution aliases under %LocalAppData%\Microsoft\WindowsApps, the per-user folder where Windows keeps MSIX app execution aliases.
The traditional installer has the most familiar layout, and it differs depending on whether you choose a per-user or all-users install. The Python 3.13 documentation for Windows lists %LocalAppData%\Programs\Python\PythonXY as the default just-for-me target and %ProgramFiles%\Python X.Y as the default all-users target. The interpreter sits at the root of that folder and Scripts sits beneath it. An all-users install also places the legacy py.exe launcher in the Windows directory.
The older Store packages are the awkward ones. Their program files live in a read-only package folder under C:\Program Files\WindowsApps\<package full name>, and Windows redirects writes to user locations into a private copy. The Python 3.13 documentation gives the example of %LocalAppData%\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\ as the real destination when a Store Python writes to AppData\Local. There is no ordinary Scripts folder on your PATH; the package exposes pip and idle through app execution aliases instead.
| Method | Runtime files | Command aliases |
Scripts folder |
Scope |
|---|---|---|---|---|
| Install manager | %LocalAppData%\Python\<tag> |
%LocalAppData%\Python\bin plus WindowsApps aliases |
<runtime>\Scripts |
Per-user only |
| python.org installer |
%LocalAppData%\Programs\Python\PythonXY or %ProgramFiles%\Python X.Y
|
python.exe in the install folder; legacy py.exe
|
<install>\Scripts |
Per-user or all-users |
| Store package | C:\Program Files\WindowsApps\<package full name> |
App execution aliases in %LocalAppData%\Microsoft\WindowsApps
|
Not exposed on PATH
|
Per-user app package |
If you need the full path table and the python -c "import sys; print(sys.executable)" style checks for an existing machine, this guide to Python installation paths on Windows walks through locating each layout and verifying which interpreter is actually running. The install manager also has a built-in shortcut: py list --format=prefix prints the folder for each runtime, so you do not have to guess at tag-based folder names.
Command Behaviour for python, py, and python3
Under the install manager, python launches the default runtime, py does the same but also manages versions, and python3 is included mainly to catch scripts that assume the POSIX name; the documentation explicitly says it is not meant to be widely used or recommended. To pin a version, use py -V:3.15 or the shorter py -3.15. Version-suffixed aliases such as python3.15.exe exist only in %LocalAppData%\Python\bin, so they require that folder on PATH; you are prompted about this on first runtime install, and it is optional.
The traditional installer writes python.exe into the install directory and offers to prepend that directory and Scripts to PATH. If you decline, python is not found in a new terminal. The legacy py.exe launcher is the workaround: it discovers registered interpreters through the registry rather than PATH, which is the registration scheme described in PEP 514. That PEP also specifies that tools like py.exe should prefer a per-user registration over a matching per-machine one, which is why the launcher can pick a sensible version without any PATH editing.
The Store package works almost entirely through app execution aliases. python, python3, and python3.x are aliases that you can enable or disable in "Manage app execution aliases", and no PATH change is involved. The catch is coexistence: the Python 3.13 documentation warns that if another Python is on PATH, that install wins for python.exe, and the legacy py.exe launcher will detect the Store install but prefer traditional installs.
| Command | Install manager | python.org installer | Store package |
|---|---|---|---|
python |
Alias to default runtime | Works only if PATH was modified |
App execution alias |
py |
Full manager CLI and launcher | Legacy launcher, registry-based | Legacy launcher detects it but prefers traditional installs |
python3 |
Alias included for compatibility | Not installed | App execution alias |
python3.15 |
Alias in %LocalAppData%\Python\bin, needs PATH
|
Not installed | Versioned alias for that package |
One conflict matters before you migrate: the legacy py.exe and the install manager both claim the py command. The install manager release notes recommend uninstalling the Python launcher from previous installs, and the documentation notes that if the old launcher wins, py may give a "can't open file" error until you remove it. The syntax also differs between generations: the new manager uses subcommands such as py list and py install, while the old launcher uses flags such as py --list and py -0p.
Updates, Repairs, and Uninstalls
The install manager separates the tool from the runtimes, which changes the meaning of "update" and "uninstall".
- The manager updates itself automatically, within about a day of a release, and that does not touch installed runtimes.
-
py install --updatereplaces managed runtimes with newer versions. It removes modifications made to the install, including globally installed packages, but leaves the runtime'ssite-packagesandScriptsdirectories in place, and does not touch virtual environments. - New packages installed with
pipdo not get global shortcuts automatically;py install --refreshrecreates shortcuts and aliases. - Uninstalling the manager from "Installed apps" does not uninstall any runtimes, although it removes the global
pythonandpycommands. To remove everything, runpy uninstall --purgefirst, or usepy uninstall <tag>for individual runtimes.
The traditional installer behaves like a classic Windows Installer program: you modify features, repair files, or uninstall from the same setup entry, and the documentation notes that the install directory cannot be changed in Modify mode. Installing a newer Python next to an older one can also change which python wins, because PATH is prepended or appended rather than version-aware, a limitation PEP 773 calls out directly.
The Store package is updated by the Store, and uninstalling it removes packages installed into that interpreter but not your virtual environments. Because of the AppData redirection, the package's own data lives in a private per-package folder rather than the normal user profile paths, which is worth remembering when you script backups or look for configuration files.
Migrating to the Install Manager
The migration is mostly about protecting packages and virtual environments, because neither is moved for you. Virtual environments are explicitly "not considered as movable or copyable" in the venv documentation; installed scripts contain absolute paths to the interpreter, so you recreate an environment at the new location instead of copying it. Global packages in an old interpreter's site-packages likewise need to be reinstalled.
-
Record what you have. Run
py -0p(orpy --list-paths) with the legacy launcher, note each base interpreter path, and export packages from each environment withpython -m pip freeze > requirements.txt. -
Install the manager through one channel. For example:
winget install 9NQ7512CXL7T -e --accept-package-agreements --disable-interactivity, then runpy install --configure -yto accept the configuration checker's suggested changes. -
Remove the old launcher and stale
PATHentries, but keep the old runtimes for now. The manager's troubleshooting guidance for "pythondoesn't launch the same runtime aspy" is to remove existing Python entries or disable theirPATHoptions. -
Install matching runtimes.
py install 3.13 3.12(or whichever versions you need).py listshows managed and unmanaged installs, andpy list --only-managednarrows it to the new ones. -
Recreate each virtual environment. Delete the old
.venvand runpy -V:3.13 -m venv .venv, activate it, thenpython -m pip install -r requirements.txt. Test any compiled dependencies before deleting the old interpreter. -
Reinstall global tools into the new runtime, then refresh aliases. After
pip installof command-line tools, runpy install --refreshsopip.exeand similar commands appear in the aliases folder. -
Port your defaults. The old
py.inifile is ignored by the new manager. UsePYTHON_MANAGER_DEFAULTor thedefault_tagsetting in%AppData%\Python\pymanager.jsoninstead. -
Verify, then clean up. Check
py listandpy -V:3.13 -c "import sys; print(sys.executable)", then uninstall the old traditional or Store Python. Only runpy uninstall --purgewhen you actually want to remove every managed runtime.
Which Method Should You Choose?
There is no single default that fits every Windows setup, so use the scenario rather than the installer's age.
| Scenario | Recommended approach | Why |
|---|---|---|
| Individual developer laptop | Install manager from the Store or WinGet | Per-user install, automatic updates, easy multi-version switching with py
|
| Existing project pinned to an older python.org install | Keep it until you have validated the migration, then move to the manager | Native wheels and tooling may assume the old base path; run both side by side first |
| Shared workstation with several users | Install manager MSI for the tool, then per-user runtimes | The MSI installs the manager per-machine, but runtimes remain per-user and shared between MSI and MSIX installs |
| Automated provisioning or CI | WinGet plus py install, with an offline index if needed |
Scriptable and version-pinned; build an offline index with py install --download for disconnected machines |
| Truly machine-wide, fixed-path requirement | Traditional all-users installer until 3.16, or py install --target plus your own system changes |
The install manager does not support per-machine runtimes; the documentation suggests --target as the emulation path |
| Windows Server 2019 | Install manager MSI, not the MSIX | MSIX is unsupported there; the MSI is the documented fallback |
Two caveats worth repeating for administrators. The install manager supports Windows 10 and Windows Server 2022 or later, so older servers need a different plan. And provisioning an MSIX for all users does not remove the per-user runtime requirement: someone still has to be logged in to run py install, because there is no supported way to trigger those installs machine-wide.
Conclusion
The Python install manager is the forward-looking choice: per-user runtimes under %LocalAppData%\Python, aliases in %LocalAppData%\Python\bin, automatic self-updates, and a clean split between the tool and the runtimes it manages. The traditional python.org installer gives you the familiar %LocalAppData%\Programs\Python\PythonXY or %ProgramFiles%\Python X.Y layout and all-users installs, but it stops shipping with Python 3.16. The older Store packages are best treated as legacy, with a sandboxed WindowsApps layout and redirected AppData paths. For most developers in 2026, install the manager, pin versions with py, recreate virtual environments rather than copying them, and keep the old install around only until the migration is verified.
Top comments (0)