Thanks to theidioms.com

How to install Python for Windows?

How to install Python for Windows
Tutorial

How to install Python for Windows?

How to install Python for Windows?How to install Python for Windows?

In this tutorial, we will learn how to install Python for Windows.

Unlike other popular programming languages (such as C and C++), Python uses an interpreter which is just a computer program that directly executes written instructions. This also means that all scripts written in Python are executed line by line and not all at once.

Install Python for Windows

It is quite rare that a Windows operating system comes pre-installed with Python. However, installing it by yourself is pretty simple and quick.

To install Python for Windows, all you have to do is download an executable installation file from Python’s official website and run it on your system. However, do make sure that you download the latest stable build of the Python interpreter.

Follow these instructions for installing Python on Windows:

1. Download the latest stable build of Python from the following link: https://www.python.org/downloads.

installing Python

2. Once the installer has been downloaded, run it. Make sure to select ‘Add Python 3.8 to PATH’ and press on ‘Install now’. If your downloaded Python version is different from Python 3.8 then the version name on the option will be different.

Run Python Installer

The installation time can take anywhere from 30 seconds to 2 minutes. Once the installation finishes, you are ready to use Python!

Checking if the Python installation is working

After you install Python for Windows it is time for you to check if it is working.

Open Command Prompt and type python. If you see a similar kind of message in your Command Prompt window, then you have successfully installed Python.

Python command executed in command prompt

Note: Your Python version may be different from the one shown in the image, depending on the version that you installed from the Python website.

Let us try writing a simple Hello World program to see the Python interpreter in action.

print("Hello, World!")
Hello, World!
A simple hello world program in Python command prompt

You have successfully written your first line of Python code. If you get stuck anywhere, please feel free to let us know in the comments.


Are you interested in working with data? Get a free trial month of LinkedIn Learning and learn Data Science and Machine Learning courses using Python, R, and SQL from top instructors.

Enroll in any one of the courses from the following fields today on LinkedIn Learning and start your free month of learning:

Disclaimer: When you subscribe to LinkedIn Learning, we may earn a small commission as an affiliate. We love the platform so much so that we have been using it ourselves at The Click Reader.

How to install Python for Windows?How to install Python for Windows?

Leave your thought here

Your email address will not be published. Required fields are marked *