Python on Windows: the install manager, the old installer and PATH
Installing Python on Windows used to mean one installer and one checkbox. It is now in the middle of a change, and the python.org download page shows both the old way and the new way. Here is what each one is and which to choose.
Python is free and open source under the Python Software Foundation licence.
The downloads on python.org
The Windows downloads page lists, for each release:
- Python install manager, as an MSIX installer or an MSI package. This is the method the Python documentation now recommends.
- Traditional installers for 64-bit, ARM64 and 32-bit Windows.
- Embeddable packages: zip files with a minimal Python for bundling inside another application. They do not include pip and are not meant for everyday use.
The install manager is also in the Microsoft Store, and the Store and python.org MSIX builds are identical. Use the MSI only where MSIX packages cannot be installed. The documentation names Windows Server 2019 as that case.
The traditional installer is deprecated, and the documentation says it will stop being produced in a future release. It still works, which is why you may see it on mirrors and in older tutorials. If you do use it, tick the "Add python.exe to PATH" box on its first screen.
Current Python releases support Windows 10 and newer. For Windows 7 or 8.1, the documentation points to older releases.
Working with the install manager
Once the manager is installed, these commands cover most needs:
pythonstarts the default runtime, normally the newest stable release.py installadds another version, andpy listshows what is installed.py list --onlineshows what you could install.py -V:followed by a version tag runs that specific version.
On the first install you may be asked to add a folder to PATH. That is optional, and only needed for version-specific commands.
When python opens the Store
If typing python opens the Microsoft Store or says the command is not found, click Start, open Manage app execution aliases, and make sure the "Python (default)" entries are on. If they already are, switch them off and back on. The documentation suggests exactly that.
Your first project
Make a folder, open a terminal in it and create a virtual environment, so packages for this project stay separate from everything else:
python -m venv .venv
.venv\Scripts\activate
python -m pip install requestsUsing python -m pip rather than plain pip makes sure the package lands in the Python you are actually running. IDLE, the simple editor that comes with Python, starts with python -m idlelib if you want to try a few lines without setting up anything else.
Questions and answers
Is Python free?
Yes, for any use, including commercial work.
Should I use the install manager or the traditional installer?
The install manager. It is what the Python documentation recommends, and the traditional installer is on its way out.
64-bit, 32-bit or ARM64?
64-bit on ordinary PCs, ARM64 on Windows on Arm. The 32-bit build is only for old 32-bit systems or tools that specifically require it.
Can I have several Python versions at once?
Yes. Use py install to add them and py -V: to pick one, or create a virtual environment from the version you need.
Does Python run on Windows 7?
Not current releases. Python follows Microsoft's support periods, so Windows 7 needs a much older release.
- Best for
- Learning to program, running scripts and tools written in Python, or building your own projects.
- Good to know
- Windows can intercept the python command and open the Microsoft Store; the app execution alias settings fix that.
Set up the rest of your toolkit
Most Python developers on Windows pair it with Visual Studio Code and its Python extension, and with Git for Windows to keep track of changes.