Detailed tutorial on installing Python 3.8.1 on Linux

Detailed tutorial on installing Python 3.8.1 on Linux

This example takes the installation of Python 3.8 on Linux as an example.

1. Dependency package installation

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel

2. Download package:

https://www.python.org/ftp/python/3.8.1/

wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz

3. Decompression:

tar -zxvf Python-3.8.1.tgz

4. Installation:

cd Python-3.8.1
./configure --prefix=/usr/local/python3
make && make install

5. Establish soft connection

ln -s /usr/local/python3/bin/python3.8 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip3

6. Verify whether the installation is successful

Execute python3 command

Execute pip3 command

If the above commands produce the results shown in the figure, the installation is successful.

Summarize

The above is a detailed tutorial on how to install Python 3.8.1 on Linux introduced by the editor. I hope it will be helpful to everyone!

You may also be interested in:
  • Python 3.8.3 installation tutorial and detailed tutorial on environment configuration (64-bit)
  • Detailed instructions for installing Python 3.8 on Windows
  • Solve the error problem of installing turtle-0.0.2 with pip in Python 3.8
  • Detailed instructions for downloading and installing python3.8
  • Tutorial on upgrading and installing python 3.8 and configuring pip and yum under Linux
  • How to install Python 3.8.0 in Windows
  • Install the latest python3.8 under Centos7
  • Python 3.8.2 installation package and installation tutorial with pictures and text (with installation package)

<<:  Solving problems encountered when importing and exporting Mysql

>>:  How to encapsulate WangEditor rich text component in Angular

Recommend

Web interview Vue custom components and calling methods

Import: Due to project requirements, we will enca...

Vue integrates a rich text editor that supports image zooming and dragging

need: According to business requirements, it is n...

Detailed analysis of the parameter file my.cnf of MySQL in Ubuntu

Preface Based on my understanding of MySQL, I thi...

HTML+CSS to create a top navigation bar menu

Navigation bar creation: Technical requirements: ...

A brief analysis of SQL examples for finding uncommitted transactions in MySQL

A long time ago, I summarized a blog post titled ...

How to modify create-react-app's configuration without using eject

1. Why is eject not recommended? 1. What changes ...

Install MySQL 5.7 on Ubuntu 18.04

This article is compiled with reference to the My...

Detailed explanation of storage engine in MySQL

MySQL storage engine overview What is a storage e...

Detailed explanation of html printing related operations and implementation

The principle is to call the window.print() metho...

The whole process of configuring hive metadata to MySQL

In the hive installation directory, enter the con...

Vue Element-ui implements tree control node adding icon detailed explanation

Table of contents 1. Rendering 2. Bind data and a...

Comprehensive understanding of HTML basic structure

Introduction to HTML HyperText Markup Language: H...