본문 바로가기

리눅스

How to Install python 3.7 on CentOS 7

728x90

How to Install python 3.7 on CentOS 7

Step 1 — Install Prerequisites

yum install gcc openssl-devel bzip2-devel libffi-devel

Step 2 — Download Python 3.x

cd /usr/local/src/
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
tar xfz Python-3.7.2.tgz

Step 3 — Install Python3.x

cd Python-3.7.2
./configure --enable-optimizations
make altinstall

Step 4 — Using Python 3.x

./python --version
$ ./python --version
Python 3.7.2

 

728x90