카테고리 없음

linux(centOS7) python 3.x 설치

I장군T 2024. 3. 28. 14:35
반응형

centOS 또는 redHat에서 python을 사용할려고하는데 기본으로 2.x대가 설치되어 있다

python --version

요즘엔 python 3.X를 많이 사용하니 버전 업그레이드를 할려고 함

 

1. 먼저 플러그인을 설치한다. 

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

2. python 사이트에서 버전 확인

site : https://www.python.org/downloads

 

Python Release Python 3.8.19

The official home of the Python Programming Language

www.python.org

3. 원하는 버전을 받는다. 

wget https://www.python.org/ftp/python/3.8.19/Python-3.8.19.tgz

 

4. 다운받은 파일 압축을 푼다

tar -zxvf ./Python-3.8.19.tgz

5. 설치진행

cd Python-3.8.19
./configure
make
make install

 

6. 설치 확인

python3 --version

 

반응형