How to Install Python in Ubuntu — Python Tutorial

Introduction

Python is a high-level, dynamic, and general-purpose programming language. It was designed and developed by the Python Software Foundation.

Python is a cross-platform language and was first released on February 20, 1991.

In this tutorial, we are working on the installation process of Python, which includes the following steps:

Although Python 2.7 is installed by default in Ubuntu, we can install other Python versions, like Python 3.

To install Python 3, just type the following command in the terminal, and it will be installed automatically.

Python Installation

  1. Update the APT Repository
$ apt-get update

2) Install Python

$ apt-get install python3.6  

3) Verify Python

$ python  

When we type Python, it shows the default installed Python, which is 2.7.

For Python 3, type the following command, and it will show the other version as well.

Well, on the basis of these commands, we can test applications for both Python versions.

--

--

Rajguleria
Python Tutorial | Python Programming Language

help 9-5 workers start a one-person business without quitting their jobs. Start building your 1-person biz here -> https://michaellim.ck.page/crashcourse 🚀