← Back to Python 2
Silent install command for Python 2 2.7.18150
The exact silent switches the Python 2 installer accepts, plus a one-line command you can paste into a script, Intune Win32 app, or Configuration Manager package.
One-line silent install (x64, machine scope)
msiexec.exe /i python-2.7.18.amd64.msi /quiet /norestart
Run from the directory containing python-2.7.18.amd64.msi. Download the installer from the Direct link below first. Run an elevated terminal (Run as Administrator) for machine-scope installs.
| Architecture | Scope | Type | Silent switches | Source |
|---|---|---|---|---|
| x64 | machine | MSI | Default for MSI | |
| x86 | machine | MSI | Default for MSI |
- Declared by publisher means the switches come straight from the winget manifest the publisher (or community maintainer) submitted to microsoft/winget-pkgs.
- Default for {type} means the manifest doesn't specify silent switches, so the framework's standard switches are shown (e.g.
/Sfor NSIS,/quiet /norestartfor MSI).
Frequently asked questions
What is the silent install command for Python 2?
Python 2 uses MSI. After downloading the installer, run: msiexec.exe /i python-2.7.18.amd64.msi /quiet /norestart. The silent install switches are /quiet /norestart.
How do I deploy Python 2 via Intune or Configuration Manager?
Use winget for the cleanest path: winget install --id Python.Python.2 --exact 2.7.18150 --silent --accept-package-agreements --accept-source-agreements. If winget isn't viable in your environment, package the publisher's installer directly using the silent switches above.
Prefer the winget route? See the full Python 2 install page.