How To Install Python On Ubuntu

Websolutionstuff | May-06-2022 | Categories : Python

In this article, we will see how to install python on ubuntu. Python is a popular programming language. Python can be used on a server to create web applications. Python is a high-level, dynamic, and general-purpose programming language. It was designed and developed by Python Software Foundation.

So, let's see how to install python on ubuntu 16.04, how to install python on ubuntu 18.04, how to install python on ubuntu 20.04, install python 3 on ubuntu, ubuntu install python 3, ubuntu install python, ubuntu install pip, install python in ubuntu using terminal, ubuntu 20.04 install python 3, install python 3 on ubuntu 20.04.

Step 1: Update the APT Repository

In this step, we will update the APT repository using the below command.

apt-get update

 

 

Step 2: Install Supporting Software

 Install the supporting software with the below command. The software-properties-common package gives you better control over your package manager by letting you add PPA (Personal Package Archive) repositories.

sudo apt install software-properties-common

 

Step 3: Add Deadsnakes PPA

Deadsnakes is a PPA with newer releases than the default Ubuntu repositories. Add the PPA using the below command.

sudo add-apt-repository ppa:deadsnakes/ppa

The system will prompt you to press enter to continue. After that update the package.

sudo apt update

 

 

Step 4: Install Python 3

Now, we will install Python 3.8 the using below command.

sudo apt install python3.8

You can verify whether python is installed or not using the below command.

python --version

 


You might also like :

Recommended Post
Featured Post
PHP - file_get_contents() SSL Connection Reset by Peer
PHP - file_get_contents() SSL...

Hey there! So, you're working with PHP and trying to fetch content from an HTTPS URL using the file_get_contents() f...

Read More

Mar-01-2024

How to Increase max_input_vars in PHP Ubuntu
How to Increase max_input_vars...

Hey folks! If you've ever encountered issues with PHP hitting the max_input_vars limit, you're not alone. In thi...

Read More

Feb-02-2024

How To Send Email With Attachment Using Node.js
How To Send Email With Attachm...

Hello Guys, In this tutorial we will see how to send email with attachment using node.js app. In this tutorial w...

Read More

Aug-09-2021

Laravel 11 Custom Login and Registration
Laravel 11 Custom Login and Re...

Hello, laravel web developers! In this article, we'll see how to create a custom login and registration in laravel 1...

Read More

Aug-05-2024