Linux 4 installation procedures

First, install python3.6.7

https://www.cnblogs.com/pyyu/p/7402145.html

The first step, download the source package

wget https://www.python.org/ftp/python/3.6.7/Python-3.6.7.tar.xz

The second step, decompression

xz -d Python 3.6 . 7 .tar.xz 
takes -xf Python 3.6 . 7 .tar.xz

The third step is to resolve the dependencies to compile and install python3

yum install gcc patch libffi-devel python-devel  zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel -y

The fourth step is to begin to compile and install

1, configure script file in the source package call path

./configure --prefix=/opt/python36

1, execute make command, start compiling

2, make install to install the software

Guess you like

Origin www.cnblogs.com/yinwenjie/p/11351452.html