heat

Install its dependencies

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

# Unzip download

cd /optwget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgztar -xvf Python-3.6.8.tgz

mv Python-3.6.8 python-3.6.8 # Create a directory in the local directory python3
mkdir / opt / python3
# Configure the installation directory
cd /opt/python-3.6.8
./configure --prefix = / opt / python3
# compiler mounting
the make the make the install &&
# python3 flexible connection configuration
LN -s / opt / python3 / bin / python3 / usr / bin / python3
# PIP3 flexible connection configuration
LN -s / opt / python3 / bin / PIP3 / usr / bin / PIP3
# upgrade PIP
PIP3 install --upgrade PIP

 

Guess you like

Origin www.cnblogs.com/mayijinfu/p/11715348.html