How to install Python on Windows 10 using UI and Windows command prompt?

Overview

Python is a widely used programming language that enables software and webpages, automates operations, and interprets information. It is used to make several different types of applications and isn't tailored for any particular issues. This tutorial will show you how to install Python on Windows 10 using UI and Windows Command prompt.

Prerequisites

There are certain prerequisites that need to be met before you begin.

  • A system with Windows 10 installed.

Get Started

a. Python Installation on Windows 10 using UI: Follow the below steps to install Python on Windows 10 using UI:

  1. Download the python.exe file.

  2. Open the downloaded python.exe file.

  3. Click on Customize installation to start the installation process.

  4. Select the Optional Features you want in Python and click Next.

  5. Select the Advanced Options, choose the location for installation and click Install.

  6. Click on Yes to allow the app to make changes to your device.

  7. Python is successfully installed now.

b. Python Installation on Windows 10 using Windows Command prompt Follow the below steps to install Python on Windows 10 using Windows Command prompt:

  1. Open Command Prompt.

  2. Download the python.exe file using the below code:

    curl -O https://www.python.org/ftp/python/3.10.10/python-3.10.10-amd64.exe​

  3. Install Python using the below command:

    python-3.10.10-amd64.exe /passive /quiet InstallAllUsers=1 PrependPath=1 Include_test=0

Python is successfully installed now.

Conclusion

You have successfully installed Python. Also see How to Install Python 3 on Ubuntu 22.04 and Set Up a Programming Environment .

Last updated