How To Install python3.8 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install python3.8
on Ubuntu 20.04.
What is python3.8
python3.8 is:
Python is a high-level, interactive, object-oriented language. Its 3.8 version includes an extensive class library with lots of goodies for network programming, system administration, sounds and graphics. Task: minimal, ubuntu-core
Package: python3.8 Architecture: amd64 Version: 3.8.2-1ubuntu1 Multi-Arch: allowed Priority: important Section: python Origin: Ubuntu Maintainer: Ubuntu Core Developers [email protected] Original-Maintainer: Matthias Klose [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 486 Depends: python3.8-minimal (= 3.8.2-1ubuntu1), libpython3.8-stdlib (= 3.8.2-1ubuntu1), mime-support Suggests: python3.8-venv, python3.8-doc, binutils Breaks: python3-all (« 3.6.5~rc1-1), python3-dev (« 3.6.5~rc1-1), python3-venv (« 3.6.5-2) Filename: pool/main/p/python3.8/python3.8_3.8.2-1ubuntu1_amd64.deb Size: 363708 MD5sum: a69b170a911052b7ff9520a6b9364e8b SHA1: 65b68b94bd2068a2f983873e7e96d702c5239512 SHA256: f46cadc3203280ccfbef4a2c0cf6c49c679543a395b1bd9e247d19230da9c9f5 Description-en: Interactive high-level object-oriented language (version 3.8) Python is a high-level, interactive, object-oriented language. Its 3.8 version includes an extensive class library with lots of goodies for network programming, system administration, sounds and graphics. Task: minimal, ubuntu-core
There are three methods to install python3.8
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python3.8 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python3.8
using apt-get
by running the following command:
sudo apt-get -y install python3.8
Install python3.8 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3.8
using apt
by running the following command:
sudo apt -y install python3.8
Install python3.8 Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python3.8
using aptitude
by running the following command:
sudo aptitude -y install python3.8
How To Uninstall python3.8 on Ubuntu 20.04
To uninstall only the python3.8
package we can use the following command:
sudo apt-get remove python3.8
Uninstall python3.8 And Its Dependencies
To uninstall python3.8
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove python3.8
Remove python3.8 Configurations and Data
To remove python3.8
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge python3.8
Remove python3.8 configuration, data, and all of its dependencies
We can use the following command to remove python3.8
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3.8
References
Summary
In this tutorial we learn how to install python3.8
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.