[리눅스] How to Install python 3.7 on CentOS 7

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/src/
$ wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
$ tar xvfz 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 3.7.2

댓글 남기기
◀ PREV 12345···301 NEXT ▶