How to Install Python on Windows? - Scaler Topics (original) (raw)

Introduction

Python, renowned for its simplicity and efficiency, is a programming language that has garnered widespread popularity across diverse sectors. Python's design emphasizes code readability and a syntax that allows programmers to express concepts in fewer lines of code. This makes Python an ideal language for both beginners and experienced developers. It's extensively used in web development, data analysis, artificial intelligence, and more. Installing Python on Windows marks the beginning of an exciting journey into the world of programming, offering a blend of simplicity, versatility, and power.

Pre-requisites

You will need certain prerequisites to be met before you successfully know how to install Python in Windows.

They are –

  1. A system running Windows 10 or Windows 7, having all the appropriate admin privileges.
    Note – Python can run on any Operating System and other compatible versions of Windows. However, in this article, we will focus on installation for Windows 10 and Windows 7 only.
  2. A Command Prompt, which comes pre-installed with a Windows system.

Download and Install Python on Windows

To install Python, we first need to download the relevant files. All versions of Python for Windows are available on the official website and can be downloaded from there.

The list would look something like this –

download and install pythonYou can download the relevant version compatible with your version of Windows. In this article, we learn to install Python for Windows 10 and Windows 7.

When this article was published, the latest Python 3 release was Python 3.9.6, and the latest Python 2 release was Python 2.7.18. So, we will walk you through the installation process of Python 3.8.10, which is compatible and supported by both Windows 10 and Windows 7.

Steps to Install Python on Windows 10 and 7

Step 1 – Select the Version of Python to Install

As seen in the image above, the list of available versions of Python is pretty long. You, as a user, will have to install the version that is the most relevant to you –

Step 2 – Download Python Executable Installer

The steps to install the Python Executable Installer are as follows –

Step 3 – Run Executive Installer

Step 4 – Verify Python was Installed on Windows

Step 5 – Verify Pip was Installed

Now, the last and final step is to check whether the pip was installed or not. For the unaware, pip is Python’s very own package management system used to install and manage software related to Python.

Clearly, it is essential to have pip installed with Python to ensure a smooth and efficient Python workspace.

We can verify the installation of the pip in the following way –

How Do You Know If Python is Already Installed?

Before actually trying to install Python in Windows 10 or Windows 7, we must ensure it is not already installed.

We can follow these steps to check whether Python is already installed or not –

if python is already installedThe Command prompt window will look something like this if Python is not installed on your system –

if python is not installedIn some cases, if you already have Python installed and the current version is giving you some issues, or if you wish to delete and reinstall it, you can follow the following steps –

Conclusion

In this article, we went over how to install Python in Windows 10 and Windows 7. The process will remain the same even if you opt for a different version of Python.

Important things to remember while installing Python –

Now, you are all set to start your Python journey! Install your favorite IDE and get coding!

See More