"리눅스 Python 버전 확인"의 두 판 사이의 차이

44번째 줄: 44번째 줄:
*[[파이썬 2.7 업그레이드]]
*[[파이썬 2.7 업그레이드]]
*[[파이썬]]
*[[파이썬]]
*[[리눅스 python 설치]]


[[분류:리눅스]]
[[분류:리눅스]]

2013년 12월 2일 (월) 02:24 판

Python 버전 확인
Python 설치 확인
파이썬 버전 확인
파이썬 설치 확인
파이썬 위치 확인

1 개요

  • 리눅스를 설치하면 파이썬도 함께 설치되는 것이 보통이다.
CentOS 6 최소 설치 패키지에 포함되어 있다.
  • 파이썬 실행파일은 보통 /usr/bin 에 있다.
[root@jmnote ~]# which python
/usr/bin/python

2 방법 1: python

명령어
python -V
실행 예시
[root@jmnote ~]# python -V
Python 2.4.3

3 방법 2: rpm

[root@jmnote ~]# rpm -qa python
python-2.4.3-44.el5_7.1

4 방법 3: yum

[root@jmnote ~]# yum list installed python
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
Installed Packages
python.x86_64                           2.4.3-44.el5_7.1                           installed

5 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}