Install Python on Windows using 5 easy steps

How to install Python on Windows?

Step-by-step Python Installation Guide

XIT
3 min readFeb 25, 2023

Follow XIT on medium & UglyCompany on Telegram for more..

Python is a popular programming language used for web development, data analysis, machine learning, artificial intelligence and more. Python is available for download on Windows, Linux, and macOS. In this guide, we will focus on installing Python on Windows.

Step 1: Download the Python Installer

Obtaining the Python installer from the official Python website is the first step in installing Python on Windows. Click the “Download Python” button at https://www.python.org/downloads/. Select the most recent Python version for your system.

The recommended version for the majority of users is 3.x.x.

Step 2: Execute the Python Installer

Following the download, open the executable file. A setup wizard will be displayed when you run the installer. You will be guided through the installation process by the wizard. The selection of the installation site is the first step. In most cases, the default installation directory is sufficient; however, you can select a different location if you so choose.

Step 3: Add Python to the System Path

Adding Python to the system path is a crucial step that makes it possible to use Python from PowerShell or the command line. On the “Customize Python” screen while installation, select the “Add Python 3.x to PATH” option to add Python to the path.

If you accidentally skipped the “Customize Python” screen or didn’t check the “Add Python to PATH” option, don’t worry. You can still add Python to your system’s PATH environment variable manually. Follow the steps below:

  1. Open the Start menu and search for “environment variables”.
  2. Select “Edit the system environment variables”.
  3. Click on the “Environment Variables” button at the bottom of the System Properties window.
  4. In the “System Variables” section, scroll down and select “Path”, then click the “Edit” button.
  5. Click the “New” button and enter the path to the Python executable. The default installation path for Python is “C:\Python3x”. Make sure to replace “x” with the minor version number of your Python installation.
  6. Click “OK” to close all windows and save the changes.

Step 4: Complete the Installation

To complete the installation, click the Install Now button after selecting the optional features and adding Python to your path. Depending on your system configuration, the installation process may take several minutes.

Step 5: Choose Optional Features

The next step is to choose the features you want to install that are optional. Documentation, the Python package manager pip, and the Python Integrated Development Environment (IDE) are among these features. Unless you have a specific reason to choose otherwise, it is suggested that you leave the defaults selected.

Step 6: Verify the Installation

After the installation is complete, you can verify that Python is installed by opening PowerShell or Command Prompt and typing “python” at the prompt. If Python is installed correctly, the Python shell prompt will look like this:

You can exit the Python interpreter by typing “exit()” at the prompt.

🎉 Congratulations! You have successfully installed Python on Windows, added it to your path and confirmed the installation.

A supporter is worth a thousand followers. 😊

--

--

XIT

SHHH! The voice of none is stronger than the voice of one.