The best way to install Python through Windows Command Prompt will be through Chocolatey (Windows Package Manageer).

Steps to install python 3 will be as follows :-

  1. Open CMD using 'Run as Administrator'.

  2. Download and Install Chocolatey using the following command.

Copy@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
  1. Download and install python using the following command.
choco install -y python3
  1. You can check the version to verify if Python was successfully installed as follows.
Copypython --version
Answer from Cyborg on Stack Overflow
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › dev-environment › python
Python on Windows for beginners | Microsoft Learn
April 15, 2026 - Install Python: Install Python from the Microsoft Store. The Microsoft Store version automatically configures your PATH and provides automatic updates. Once installed, open PowerShell and run python --version to verify.
Top answer
1 of 6
33

The best way to install Python through Windows Command Prompt will be through Chocolatey (Windows Package Manageer).

Steps to install python 3 will be as follows :-

  1. Open CMD using 'Run as Administrator'.

  2. Download and Install Chocolatey using the following command.

Copy@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
  1. Download and install python using the following command.
choco install -y python3
  1. You can check the version to verify if Python was successfully installed as follows.
Copypython --version
2 of 6
22

You could download the setup you want to install and then install it automatically without using the setup's UI:

Copy[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.7.0/python-3.7.0.exe" -OutFile "c:/temp/python-3.7.0.exe"

c:/temp/python-3.7.0.exe /quiet InstallAllUsers=0 InstallLauncherAllUsers=0 PrependPath=1 Include_test=0

I don't think it will work without admin privileges though, I tried using InstallAllUsers=0 to install it only for the current user but it is still asking for elevation.

There are some options you can use when installing it this way, here is the doc: https://docs.python.org/3.6/using/windows.html#installing-without-ui

🌐
Python
docs.python.org › 3 › using › windows.html
4. Using Python on Windows — Python 3.14.6 documentation
To install the file downloaded from python.org, either double-click and select “Install”, or run Add-AppxPackage <path to MSIX> in Windows Powershell.
🌐
Groovy Post
groovypost.com › how-to › how to install python on windows 11
How to Install Python on Windows 11
September 27, 2024 - Open the Start menu and type cmd, powershell, or Windows Terminal. Launch your preferred application. In your preferred terminal window, type python --version and press Enter. Check the displayed version to ensure it matches the version you ...
🌐
Stevens
fsc.stevens.edu › installing-python-on-windows-11-workstations
Installing and Using Python on Windows 11 Workstations
April 9, 2025 - This post will guide you on how to install Python and configure it in the Hanlon Lab workstations. It is based on the most common difficulties and issues that arise from students and faculty trying to install and use Python environments. Terminal Most commands here are done through the terminal.
🌐
Bigblue
bigblue.academy › en › how-to-download-python-for-windows-step-by-step
How to Install Python on Windows
June 25, 2023 - Winget is a package manager for Windows programs, included in Windows 11. To install Python via winget, open a terminal such as command line, PowerShell, or Windows Terminal.
🌐
H2S Media
how2shout.com › home › python › 6 best ways to install python on windows 11
6 Best Ways to Install Python on Windows 11 - H2S Media
July 21, 2025 - Instead of fiddling around with websites to download Python, we can install it directly using the command prompt or PowerShell with just one command, and all this is possible because of Microsoft’s Linux-like package manager, called Winget. ... So, here is the Winget command to install Python. winget search python winget install Python.Python.3.11
Find elsewhere
🌐
Python.org
discuss.python.org › python help
Install python with a script or powershell - Python Help - Discussions on Python.org
January 24, 2024 - Im looking for some help with an install script. We want to push out python to end users in the background via powershell or script. Has anyone had any success with it?
🌐
DEV Community
dev.to › jajera › install-python-on-windows-via-cli-winget-3lnm
Install Python on Windows via CLI (winget) - DEV Community
September 23, 2025 - Press Win + X → select Windows PowerShell (Admin) or Terminal (Admin). ... Name Id Version ---------------------------------------- Python 3.13 Python.Python.3.13 3.13.7 Python 3.12 Python.Python.3.12 3.12.10 Python 3.11 Python.Python.3.11 ...
🌐
GitHub
gist.github.com › Daethyra › 66c78005b8e9c8e1dc28dd9e43021596
Python 3.10.11 PowerShell Auto-Installation · GitHub
To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters ... You can find the correct Python URL on their website. If there was a scope for this script, adding CLI args wouldn't be in it. I might've misunderstood what you meant. You can directly change which version of Python the program checks for by editing the $installedVersion, $pythonUrl, and $pythonHash variables.
🌐
YouTube
youtube.com › watch
How to Install Python on Windows 10 & 11 (via Command Lines): A Step-by-Step Guide - YouTube
📚 Materials/References:DigitalOcean Article: https://do.co/2sKnnlYCommands: https://github.com/bunleaps/python-installation-commandsOutro: https://youtu.be/...
Published   July 15, 2022
🌐
H2S Media
how2shout.com › home › developer › 2 ways to install latest python on windows 11 or 10 – gui & cmd
2 Ways to install latest Python on Windows 11 or 10 – GUI & CMD
January 18, 2023 - Start Python Installation on Windows3. Check version4. Stop Python from opening the Microsoft store5. Open PowerShell, CMD, or Terminal (Admin)6. List Python versions7. Use Winget to install Python8.
🌐
Python GUIs
pythonguis.com › installation › install python on windows
How to Install Python on Windows 11, 10 & 8 (Step-by-Step Guide)
March 23, 2026 - Learn how to install Python on Windows 11, 10 & 8 with this step-by-step guide. From downloading the installer to running Python from the command prompt, get set up quickly and start building GUI applications.
🌐
Real Python
realpython.com › installing-python
How to Install Python on Your System: A Guide – Real Python
February 18, 2026 - After you’ve selected the Python Install Manager app, follow these steps to complete the installation: Click the Get button. Wait for the app to download. Click the Open button. When you click the Open button, you’ll be presented with a terminal window. Follow the on-screen instructions to complete the installation. Once the installation is complete, open Windows PowerShell and run the python --version command to confirm that Python is installed on your machine.
🌐
Hexnode
hexnode.com › mobile-device-management › help › script-to-install-python-on-windows-devices
Script to install Python on Windows devices - Hexnode Help Center
May 14, 2024 - To ensure consistency across developer environments, IT administrators can utilize Hexnode’s Execute Custom Script action to seamlessly install the required version of Python on Windows devices by executing the provided scripts. ... The sample script provided below are adapted from third-party open source sites. PowerShell script to install Python on Windows devices
🌐
Coding for Entrepreneurs
codingforentrepreneurs.com › guides › install-python-on-windows
Install Python on Windows - Coding for Entrepreneurs
Coding for Entrepreneurs · Learn · Enroll · Courses · Suggestions · Shorts · Community · Testimonials · Connect
🌐
Windows Forum
windowsforum.com › forums › windows help and support forums › windows news
Best Ways to Install Python on Windows 11: Expert Tips & Methods | Windows Forum
July 21, 2025 - Launch PowerShell or Command Prompt. To search for Python packages: winget search python · To install Python: winget install Python.Python.3.11
🌐
YouTube
youtube.com › watch
How to Install Python on Windows 11 (2026) - YouTube
How to Install Python on Windows 11In this complete step-by-step tutorial, you’ll learn how to install Python on Windows 11 quickly and correctly. Python is ...
Published   January 1, 2026
🌐
freeCodeCamp
freecodecamp.org › news › how-to-install-python-in-windows-operating-system
How to Install Python on Windows
February 18, 2022 - In this article, I am going to ... versions of Windows as well. So without further ado let's get started. Open the CMD or PowerShell and check ......