Centos8 (minimal installation) a new installation of Python3.8+pip method tutorial

Install Python 3.8.1 after minimally installing Python 8. I found a circle of tutorials on the Internet, and none of them can be completely successful. Or it can be installed successfully, but pip cannot be used. Finally, I compiled a command based on multiple tutorials. The test was successful and there was no problem 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

I took a look at the pagoda installation program today and found that Python 3.6 can be quickly installed with the following line of commands

 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

to sum up

The above is a tutorial for the new installation of Python3.8+pip for Centos8 (minimal installation) introduced by the editor. I hope it will be helpful to you!

Recommended Posts

Centos8 (minimal installation) a new installation of Python3.8+pip method tutorial
Centos7 installation of Dameng database tutorial
CentOS 8 installation of MariaDB detailed tutorial
CentOS6 minimal installation KVM detailed tutorial
Centos8 minimal deployment and installation of OpenStack Ussuri detailed tutorial
Centos7 installation of PHP and Nginx tutorial detailed
Graphical installation of CentOS8
Docker CentOS installation method
Linux CentOS 7 installation tutorial
Discourse CentOS 8 new installation manual
Hyper-V + CentOS7 installation video tutorial
Centos7 silent installation of Oracle11g
CentOS environment installation of Docker
Centos7.4 environment installation lamp-php7.0 tutorial
Discourse CentOS 8 new installation manual
Detailed explanation of Spark installation and configuration tutorial under centOS7
Centos7 installation and configuration of Jenkins
Analysis of Hyper-V installation CentOS 8 problem
Centos iso image file installation tutorial
Minimal install JDK 1.8 tutorial in CentOS 7
Centos6.5 installation and deployment of KVM
Installation under centos6.9 of jenkins learning
CentOS7 installation and maintenance of Gitlab
Centos8 installation diagram (super detailed tutorial)
Ubuntu 20.04 CUDA&cuDNN installation method (graphic tutorial)
001. Installation of enterprise-level CentOS7.6 operating system
CentOS deployment method of flask project
[Switch] CentOS7 64-bit installation mysql tutorial
CentOS8 Chinese input method (2020-10-31 latest version) installation method
CentOS 7 system installation and configuration graphic tutorial
Centos 7 64-bit desktop version installation graphic tutorial
Installation and use of Mysql under CentOS
Centos-6.5 installation and deployment of LNMP environment
Installation and configuration of redis under centos7
Centos7 installation and deployment of gitlab server
The implementation of the Ubuntu18.04 installation Pycharm tutorial
(1) Centos7 installation to build a cluster environment
CentOS7 installation zabbix 4.0 tutorial (graphics and text)
Jenkins installation and deployment tutorial under CentOS 7
CentOS8 yum/dnf configuration method of domestic sources
Centos7 installation and deployment of Airflow detailed
2019-07-09 CentOS7 installation
centos7_1708 installation
Installation and configuration of JDK in CentOS 7 system
The most complete centos installation tutorial in history
Summary of CentOS method to set static IP
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
Centos7 tutorial to build a master-slave DNS server
Installation and configuration of rsync server under CentOS 6.5
Installation and configuration of CentOS 7 in VMware Workstation
Remember a case of CentOS OOM memory overflow
Detailed tutorial of installing nginx on centos8 (graphic)
Non-Root installation of Microsoft R Open under Centos
MySQL 8.0 installation, deployment and configuration tutorial on CentOS 8
From installation to entry of FastDFS under Centos7