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

Learn to deploy microservices with docker in ten minutes

Since its release in 2013, Docker has been widely...

MySQL server 5.7.20 installation and configuration method graphic tutorial

This article records the installation and configu...

MySQL 5.7.17 and workbench installation and configuration graphic tutorial

This article shares the installation and configur...

MySQL SHOW PROCESSLIST assists in the entire process of troubleshooting

1. SHOW PROCESSLIST command SHOW PROCESSLIST show...

Use of js optional chaining operator

Preface The optional chaining operator (?.) allow...

Solution for converting to inline styles in CSS (css-inline)

Talk about the scene Send Email Embedding HTML in...

Detailed example of removing duplicate data in MySQL

Detailed example of removing duplicate data in My...

mysql 8.0.15 winx64 decompression version graphic installation tutorial

Every time after installing the system, I have to...

Several ways to change MySQL password

Preface: In the daily use of the database, it is ...

Detailed Analysis of the Selection of MySQL Common Index and Unique Index

Suppose a user management system where each perso...

The latest version of MySQL5.7.19 decompression version installation guide

MySQL version: MySQL Community Edition (GPL) ----...