How To Install Python

As we know that before learning any language and working on it, it is necessary to install Python in the system. One thing to note here is that some languages ‚Äč‚Äčthat are not Platform-independent. They operate and install in different ways on different operating systems such as the C language.

But we don’t need to worry because we are learning Python which is a highly portable language. That means you write Python’s code in Windows and run it without any problem in Linux and Mac and other platforms also.

But before that, you have to install Python in your operating system. All you need to do is go to Python’s official website “python.org” and download the latest version of Python 3 according to your operating system from the download tabs or download from here DOWNLOAD NOW.

How To Install Python

Python 2 v/s Python 3

There you will find the “Python 2” download option also because Python 3 is a backward-incompatible release of Python which means that Python 3 has many features that Python 2 does not support and the syntax of Python 3 is also slightly different.

So the people who have not been able to shift to Python 3 yet due to the many system dependencies still use Python 2. But it is estimated that from 2020 onward, Python 3 will be the official version of Python only. So you have to download the latest version of Python 3.

Add Path Environment Variable

You will find options to download Python 3 for Windows and Mac OS there. After downloading Python 3, All you have to do is install Python in your system like you install any other software. Just keep in mind that while installing Python, you must select “Add Path Variables”, so you can launch Python from any directory. Learners who are using Linux platforms such as Ubuntu do not need to install Python. Because Ubuntu already have Python installed.

REPL

After installing Python, you can check whether Python is downloaded correctly on your system or not. For this, if you are using windows, you have to write “python” in Windows Power Shell. After running this command, a triple arrow prompt will open in your shell, containing some information about the version of Python.

And if you are using Linux and Mac OS, by going to the terminal, you have to run the command “Python 3”, which will open a triple arrow prompt in your shell as shown in the figure below, which will contain some information about the version of Python 3. This way you can test the Python installation.

This triple arrow prompt is called the REPL. REPL is an abbreviation for Reading, Print, Eval, and Loop. It is used for many purposes such as interactive python, for quick testing of certain pieces of code, and also for quick calculations. We will discuss in detail about REPL in another article.

Now you are ready to start with Python. We will cover Python from basics to advanced level here in Study4Geeks. I assure you that you will enjoy this python journey very much. Stay connected with us to learn. We wish you good health. We really appreciate your valuable time.

Do you know?
How To Install Python This article is contribute by Yash Goyal If you want share your knowledge on Study4Geeks then go to login section.