YUMSERV
Published 2019. 6. 4. 16:34
python3 소스설치 LINUX/BASIC
반응형

python 공식 홈페이지 : https://www.python.org/


※ CentOS 7 환경에서 셋팅 진행

CentOS7에서는 python 버전은 2.7 버전입니다.


# python

Python 2.7.5 (default, Aug  4 2017, 00:39:18)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2

Type "help", "copyright", "credits" or "license" for more information.



1) 필수 패키지 설치
# yum groupinstall "Development Tools"
# yum install readline-devel

2) 소스설치
python 공식홈페이지에서 소스파일을 다운로드 받습니다.

# cd /usr/local/src

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

# tar xvfz Python-3.7.3.tgz

# cd Python-3.7.3

# ./configure

# make

# ln -s /usr/local/src/Python-3.7.3/python /usr/bin/python3


# python3

Python 3.7.3 (default, Jun  4 2019, 16:20:57)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux

Type "help", "copyright", "credits" or "license" for more information.


반응형

'LINUX > BASIC' 카테고리의 다른 글

FTP 접속 에러  (0) 2019.07.17
Coredump 생성  (0) 2019.06.29
Git 설치 및 설정  (0) 2019.06.03
nmon 설치  (0) 2019.06.03
CentOS vncserver 구축  (0) 2019.06.01
profile

YUMSERV

@lena04301

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!