Python is one of the most widely used programming languages because it is easy to learn, simple to read, and has a large number of useful libraries. Whether you are a beginner or an experienced developer, the first step to start using Python is to install it on your system.
In this chapter, you will learn how to install Python on Windows step by step and set up your system to write and run Python programs.
In order to install Python on other platforms like macOS, Ubuntu, and CentOS, check the following guides:
Python doesn't come with prepackage in Windows, but it doesn't mean that Window user cannot be flexible with Python. Some operating systems such as Linux come with the Python package manager that can run to install Python. Below are the steps to install Python in Windows.
To install Python on Windows, you first have to take the Python installer from the internet.
Visit the official website of Python:

Choose the Correct Version
Selecting the appropriate version

1.3 Installer Download

After downloading the installer file, you have to run it.
2.1 Finding the Installer

2.2 Selecting Installation Preferences
Upon the appearance of the setup window of Python, these options will be available: You have to do these things:
1. There is "Add Python to PATH," which you will be required to check the box next to it.
This step must be done with utmost care as it is very critical.
2. Decide from the given options:
2.3 Commencing Installation

The whole process might take a few minutes.
To successfully confirm that Python was installed, kindly follow the procedure listed below:
4.1 Open Command Prompt
4.2 Check Python Version

3.9.7 (where the number following 3 is the version number)
In the situation that the command yields an error, it may indicate that Python is not added to the system PATH.
Pip is known as a package manager, which enables the installation and management of Python libraries.
5.1 Check if pip is Installed

In an effort to test if Python is working correctly, attempt to run basic Python scripts.
1. Command Prompt (cmd) can be opened.
2. Type:
A Python interactive shell page will open, revealing the Python version with ">>>" following it.
3. Type the following statement:
4. Assuming that Python was installed properly, it will show:

5. To close Python, the following command can be used:
We request you to subscribe our newsletter for upcoming updates.