How to install Python on Ubuntu 20.04 LTS?

To install python3, just type the following command in the terminal and it will be installed automatically.
1 min read

How to install Python on Ubuntu 20.04 LTS?

Introduction

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

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

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

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

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

Python Installation

1) Update the APT Repository

  1. $ apt-get update  

2) Install Python

  1. $ apt-get install python3.6  

2) Verify Python

When we type python it shows default installed python that is 2.7.

  1. $ python  
Software Python 1

For Python3 type the following command, then it will show the other version as well.

  1. $ python3  
Software Python 2

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

Installation on Mac

To install python3 on MacOS, visit the link https://coderpad.blogspot.com/2022/11/how-to-install-python3-on-macos.html and follow the instructions given in the tutorial.

Installation on CentOS

To install Python3 on CentOS, visit the link https://coderpad.blogspot.com/2022/11/how-to-install-python-3-on-centos.html and follow the instructions given in the tutorial.

Installation on Windows

To install Python3 on Ubuntu, visit the link https://coderpad.blogspot.com/2022/11/how-to-install-python-on-windows.html and follow the instructions given in the tutorial.

 

 

Men' fashion , Dating Tips , Relationship Advice

You may like these posts

  • How to Install Python 3 on CentOS Introduction Python is a high level, dynamic, general purpose language. It was developed by Guido Van Rossum in 1991. Python's syntax allows dev…
  • How to Read files in Python? To read a file in Python, you can use the built-in open() function to open the file, and then use the .read() method to read its contents. For exa…
  • In the previous tutorial on Basic Data Types in Python, you saw how values of various Python data types can be created. But so far, all the values shown have been literal or c…
  • How to install Python on Ubuntu 20.04 LTS? Introduction Python is a high level, dynamic and general purpose programming language. It was designed and developed by Python Software…
  •  How to Install Python (Environment Set-up) In order to become Python developer, the first step is to learn how to install or update Python on a local machine or computer. I…
  • How to Install Python3 on MacOS Introduction Python is a high level, dynamic, general purpose language. It was developed by Guido Van Rossum in 1991. Python's syntax allows deve…

Post a Comment