yum으로 python dependency 설치


$ sudo yum -y update
$ sudo yum -y groupinstall "Development Tools"
$ sudo yum -y install openssl-devel bzip2-devel libffi-devel

# gcc 설치 잘되었는지 확인
$ gcc --version

gcc --version 확인

 

Python3.7 download


# 링크에서 다운로드
$ wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz

# 압축해제
$ tar xvfz Python-3.7.4.tgz 

$ cd Python-3.7.4


$ ./configure --enable-optimizations
$ sudo make altinstall

# python 버전확인, 설치확인
$ python --version

 

./configure 에서 오류 발생

configure: error: no acceptable c compiler found in $path

 

해결방법

-> gcc 설치 후 다시 ./configure부터 시작

$ sudo yum install gcc

+ Recent posts