Centos8 (minimum installation) tutorial on how to install Python3.8+pip

Centos8 (minimum installation) tutorial on how to install Python3.8+pip

After minimizing the installation of Python8, I installed Python3.8.1. I looked for tutorials online, but none of them were completely successful. Or the installation is successful, but pip cannot be used. Finally, I compiled a command based on multiple tutorials, tested it successfully, and there were no problems with installation and use.

yum -y install wget
yum -y install setup 
yum -y install perl
yum install openssl-devel -y
yum install zlib-devel -y
yum -y groupinstall "Development tools"
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
yum install -y libffi-devel zlib1g-dev
yum install zlib* -y
yum install libffi-devel -y
wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz
tar -xvJf Python-3.8.1.tar.xz
mkdir /usr/local/python3 
cd Python-3.8.1
./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl 
make && make install
ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
pip3 install --upgrade pip

Today I looked at the installation program of Baota and found that Python 3.6 can be quickly installed with the following command

 yum install python3 python3-devel -y
 ln -sf /usr/bin/python3 /usr/bin/python

After installation, use the following command to upgrade PIP and it can be used normally.

pip3 install --upgrade pip

Summarize

The above is the tutorial on how to install Python3.8+pip on Centos8 (minimized installation) introduced by the editor. I hope it will be helpful to everyone!

You may also be interested in:
  • Use shell script to install python3.8 environment in CentOS7 (recommended)
  • Install the latest python3.8 under Centos7
  • VirtualBox CentOS7.7.1908 Python3.8 build Scrapy development environment [graphic tutorial]
  • Detailed tutorial for installing python3.8.2 in CentOS

<<:  Vue plugin error: Vue.js is detected on this page. Problem solved

>>:  How to use echarts to visualize components in Vue

Recommend

MySQL 8.0.12 decompression version installation tutorial

This article shares the installation tutorial of ...

Use SQL statement to determine whether the record already exists before insert

Table of contents Determine whether a record alre...

Example code for implementing dynamic column filtering in vue+element table

Requirement: When displaying data in a list, ther...

Five things a good user experience designer should do well (picture and text)

This article is translated from the blog Usability...

Solution to the problem of installing MySQL compressed version zip

There was a problem when installing the compresse...

Example analysis of the usage of the new json field type in mysql5.7

This article uses an example to illustrate the us...

HTML design pattern daily study notes

HTML Design Pattern Study Notes This week I mainl...

Analysis of uniapp entry-level nvue climbing pit record

Table of contents Preface Hello World image Set b...

Detailed explanation of selinux basic configuration tutorial in Linux

selinux ( Security-Enhanced Linux) is a Linux ker...

Implementing the preview function of multiple image uploads based on HTML

I recently wrote a script for uploading multiple ...