2019-07-09 CentOS7 installation

The python2.7 version is installed by default on CentOS7, and the 3.4 version is installed using yum install python34. This version will prompt when installing some software packages such as pip:

DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019(cf PEP 429).

Naturally, we want to install the higher version and need to install it manually.

  1. Download python3
    Try out 3.8 use the link below
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0b2.tgz

3.7.4 Use the link below

wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4rc2.tgz
  1. Compile and install:
tar -zxvf Python-3.8.0b2.tgz
mkdir /usr/local/python3
# If there is no compilation environment, there will be an error message, the way to fix it is to install gcc or tool suite
[ root@ax Python-3.8.0b2]# ./configure --prefix=/usr/local/python3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.8... no
checking for python3... no
checking for python... python
checking for--enable-universalsdk... no
checking for--with-universal-archs... no
checking MACHDEP..."linux"
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error:in`/home/axing/Python-3.8.0b2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[ root@ax Python-3.8.0b2]# yum -y groupinstall "Development Tools"
# Recompile after installation
cd Python-3.8.0b2
. /configure --prefix=/usr/local/python3
make && make install
# Set soft link
[ [email protected]]# ln -s /usr/local/python3/bin/python3.8/usr/bin/python3
[ root@ax]# python3
Python 3.8.0b2(default, Jul  82019,12:01:59)[GCC 4.8.520150623(Red Hat 4.8.5-36)] on linux
Type "help","copyright","credits" or "license"for more information.>>>

Recommended Posts

2019-07-09 CentOS7 installation
centos7_1708 installation
Centos5 installation guide
Python - centos6 installation
CentOS7 docker installation
CentOS online installation RabbitMQ3.7
CentOS 8 (2)
Zabbix 2.2.20 installation details (Centos6.9)
Centos source installation Python3
lamp (centos7) installation lamp environment
Centos7 mqtt cluster installation
Mysql8.0.15 installation configuration (centos7)
Linux notes (1): CentOS-7 installation
Redis3 installation under Centos7
CentOS 8 (1)
CentOS online installation RabbitMQ3.7
Docker CentOS installation method
Linux CentOS 7 installation tutorial
Centos7 docker installation details
Discourse CentOS 8 new installation manual
Centos mysql installation and configuration
Glusterfs cluster installation on Centos7
Redis cluster installation under CentOS
Centos7 installation and configuration prometheus
CentOS 7 Galera Cluster installation guide
CentOS 7 installation and configuration PPTP
CentOS 6.x installation mysql5.7 record
Graphical centos installation detailed process
Centos7.5 installation and configuration MongoDB4.0.4
Redis cluster installation under CentOS
CentOS 7 installation and configuration PPTP
Hyper-V + CentOS7 installation video tutorial
centos7 kvm installation and use
Centos7 silent installation of Oracle11g
CentOS 6.8 virtual machine installation details
CentOS7 postgresql installation and use
CentOS environment installation of Docker
Centos7 installation tomcat process introduction
Centos7.4 environment installation lamp-php7.0 tutorial
Docker EE installation on centos7
Discourse CentOS 8 new installation manual
CentOS8 Linux 8.0.1905 installation process (illustration)
Centos7 elk7.1.1 installation and use
Centos7 installation and configuration of Jenkins
Analysis of Hyper-V installation CentOS 8 problem
Centos iso image file installation tutorial
Centos7 installation is actually very simple
Centos7 installation of Dameng database tutorial
Centos6.5 installation and deployment of KVM
CentOS 8 installation of MariaDB detailed tutorial
centos7 python3.7+vi
Installation under centos6.9 of jenkins learning
CentOS6 minimal installation KVM detailed tutorial
Centos7 hadoop cluster installation and configuration
CentOS + Python3.6+
CentOS + Jenkins
MXNet-Ubuntu installation
Centos8 installation diagram (super detailed tutorial)
CentOS 7.X system installation and optimization
Java-JDK installation and configuration under CentOS
Initialize after CentOS 7 installation is complete