To install Python for Windows, get the Python install manager from the Microsoft Store or from python.org, then open a terminal and type python. If no runtime is installed yet, the manager downloads the latest stable release for you.
As of November 2026, python.org lists Python 3.15.2 as the latest Python 3 release, and its Windows download page points to the install manager for current releases. This article follows the Python documentation page "Using Python on Windows".
How to install Python on Windows (recommended)
You have two equivalent ways to get the install manager. The Python documentation states that "the two versions are identical."
- Microsoft Store. Open the Python install manager listing (
apps.microsoft.com/detail/9NQ7512CXL7T) and click Install. - python.org. Download the MSIX from
python.org/downloads, double-click it and choose Install. Or run this in Windows PowerShell, with the path to the downloaded file:
Add-AppxPackage C:\Users\alex\Downloads\python-manager.msix
The file name above is a placeholder. Use the name of the file you downloaded.
Then open a new terminal and type:
python
The install manager provides three commands: python, py and pymanager. Running python launches the default runtime, which is the latest stable release unless you configured otherwise. If no runtime is installed, it installs the latest release automatically.
How to check that Python is installed
py list
This lists the installed runtimes and shows which one is the default. To see the version from inside Python, start python and read the banner it prints, or run python -c "import sys; print(sys.version)".
Do I need to add Python to PATH?
Not if you use py. The first time you install a runtime you are likely prompted to add a directory to your PATH. According to the documentation this is optional if you prefer py. The directory holds global aliases such as python3.15.exe and defaults to %LocalAppData%\Python\bin.
- To edit it, click Start and search for "Edit environment variables for your account".
- Each runtime has its own Scripts directory. Add it to
PATHas well if you want to run commands that packages install, such aspip-installed tools. - Leave
%UserProfile%\AppData\Local\Microsoft\WindowsAppsinPATH. The documentation says shortcuts are not found without it.
How to install a specific Python version
py list --online 3.15
py install 3.15
py -V:3.15
py list --online searches the online index for installable runtimes. py install 3.15 installs one, and py -V:3.15 runs that version. -V: must come before other options. Free-threaded builds (added in Python 3.13) use a t suffix, for example py install 3.15t.
To remove one, run py uninstall 3.15. Use py uninstall --purge to remove all managed runtimes. Add -y to skip the confirmation.
Fix: "python" opens the Microsoft Store or says command not found
Windows ships app execution aliases that can take over the python name. The documented fix:
- Click Start and open Manage app execution aliases.
- Check that the Python (default) aliases are enabled.
- If they already are, switch them off and on again to refresh them. The "Python (default windowed)" and "Python install manager" aliases may need the same treatment.
The documentation gives the same fix when py reports "command not found". If you have older Python installs or hand-made PATH edits that conflict, it says to remove or undo them.
A different message, 'py' is not recognized as an internal or external command, operable program or batch file., is what the legacy launcher prints when it is missing. If you see it, install the install manager as above.
Which Windows versions are supported?
The documentation says Python supports only Windows versions that Microsoft still supports under extended support (PEP 11). For Python 3.15 that is Windows 10 and newer. Older systems need older Python:
| Windows version | Python to install |
|---|---|
| Windows 10 and newer | Python 3.15 |
| Windows 8.1 | Python 3.12 |
| Windows 7 | Python 3.8 |
Windows Server 2019 is the only supported Windows version without MSIX support. Use the MSI from python.org there. It is per-machine only, installs to Program Files and tries to add its location to the system PATH.
Scripted install and the older .exe installer
For automation, the documentation gives these commands:
winget install 9NQ7512CXL7T -e --accept-package-agreements --disable-interactivity
py install --configure -y
or, from python.org in PowerShell:
Add-AppxPackage -AppInstallerFile https://www.python.org/ftp/python/pymanager/pymanager.appinstaller
The traditional .exe installer, with its "Add python.exe to PATH" checkbox, is deprecated since Python 3.14 and will not be produced for Python 3.16 or later. Its "Install Now" option installs per user without administrator rights, and it only adds the install directory to PATH if you select that. Use it only if you need it, for example for an offline install.
After installing: next steps
Keep each project's packages separate with a virtual environment: see how to create a Python virtual environment. If an import fails later, the ModuleNotFoundError guide covers the usual causes. For installing packages, see pip install and fixing errors.
Frequently asked questions
- Is Python for Windows free?
- Yes. Python is free and open source. The python.org downloads and the Python install manager in the Microsoft Store cost nothing, and the Store app and the python.org MSIX are identical according to the Python documentation.
- Which Windows versions can run the current Python?
- The Python documentation says Python supports only Windows platforms that are under Microsoft's extended support. For Python 3.15 that means Windows 10 and newer. On Windows 8.1 install Python 3.12, and on Windows 7 install Python 3.8.
- Do I need administrator rights to install Python?
- Not for the Python install manager, which installs per user. The MSI version for Windows Server 2019 is per-machine only and installs to Program Files, so it does need elevation. The deprecated installer's 'Install Now' option is also per user.
- How do I install a second Python version?
- Run py install followed by the version, for example py install 3.15. Then pick a version with py -V:3.15 or list what you have with py list.
- How do I uninstall Python from Windows?
- For runtimes managed by the install manager, run py uninstall followed by the version tag, for example py uninstall 3.15. Adding --purge removes all managed runtimes.