close

How to install Python using Windows Command Prompt

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to install Python using Windows Command Prompt in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to install Python using Windows Command Prompt?

  1. How to install Python using Windows Command Prompt?

    Assuming that you have python-installer.exe file you can run in in /passive mode in administrator window. Without administrator privileges you will be prompted

  2. install Python using Windows Command Prompt

    Assuming that you have python-installer.exe file you can run in in /passive mode in administrator window. Without administrator privileges you will be prompted

Method 1

Installing Without UI: All of the options available in the installer UI can also be specified from the command line, allowing scripted installers to replicate an installation on many machines without user interaction. These options may also be set without suppressing the UI in order to change some of the defaults.

To completely hide the installer UI and install Python silently, pass the /quiet option. To skip past the user interaction but still display progress and errors, pass the /passive option. The /uninstall option may be passed to immediately begin removing Python – no prompt will be displayed.

All other options are passed as name=value, where the value is usually 0 to disable a feature, 1 to enable a feature, or a path.

Method 2

Assuming that you have python-installer.exe file you can run in in /passive mode in administrator window. Without administrator privileges you will be prompted

Do you want to allow this app to make changes to your device?

Powershell example could be:

$installer = "C:/tmp/python-3.7.6-amd64.exe"
& $installer /passive InstallAllUsers=1 PrependPath=1 Include_test=0

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read