Categories: Tutorials

How to Install Python 3.8 on Ubuntu, Debian and LinuxMint

The Python team has released its latest version Python 3.8 for general use. You can download the latest stable version Python 3.8 series and install it on your system. This article will help you to install Python 3.8.0 on Ubuntu, Debian, and LinuxMint operating system. You can visit here to read more about Python releases.

Step 1 – Prerequsitis

As you are going to install Python 3.8 from the source. You need to install some development libraries to compile Python source code. Use the following command to install prerequisites for Python:

sudo apt-get install build-essential checkinstall
sudo

Sponsored
apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev

Step 2 – Download Python 3.8

Download Python source code using the following command from python official site. You can also download the latest version in place of specified below.

cd /opt
sudo wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz

Then extract the downloaded source archive file

sudo tar xzf Python-3.8.0.tgz

Step 3 – Compile Python Source

Use below set of commands to compile Python source code on your system using altinstall.

Sponsored
cd Python-3.8.0
sudo ./configure --enable-optimizations
sudo make altinstall
make altinstall is used to prevent replacing the default python binary file /usr/bin/python.

Step 4 – Check Python Version

Check the installed version of python using the following command. As you have not overwritten the default Python version on the system, So you have to use Python 3.8 as follows:

python3.8 -V

Python-3.8.0

After successful installation remove the downloaded archive to save disk space

sudo rm -f Python-3.8.0.tgz

The post How to Install Python 3.8 on Ubuntu, Debian and LinuxMint appeared first on TecAdmin.

The post How to Install Python 3.8 on Ubuntu, Debian and LinuxMint first appeared on RSSFeedsCloud.

Ubuntu Server Admin

Recent Posts

Accelerating AI with open source machine learning infrastructure

The landscape of artificial intelligence is rapidly evolving, demanding robust and scalable infrastructure. To meet…

6 hours ago

Hardening automation for CIS benchmarks now available for Ubuntu 24.04 LTS

We’re pleased to release Ubuntu Security Guide profiles for CIS benchmarks. These profiles will allow…

6 hours ago

Detecting and Fixing Memory Leaks with Valgrind

Memory leaks are among the most frustrating bugs to track down in C and C++…

23 hours ago

How to Kill Processes Using Specific Ports on Linux, Windows and MacOS

Have you ever encountered issues starting a server or application because the required port is…

23 hours ago

How to Fix the “Native Host Connector Not Detected” Error for GNOME Extensions in Ubuntu 22.04

When upgrading to Ubuntu 22.04 LTS (Jammy Jellyfish), many users encounter the error message: “Although…

23 hours ago

Building optimized LLM chatbots with Canonical and NVIDIA

The landscape of generative AI is rapidly evolving, and building robust, scalable large language model…

1 day ago