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

2번째 줄: 2번째 줄:
;Python 버전 확인
;Python 버전 확인


==명령어==
==방법 1: python==
<source lang='bash'>
<source lang='bash'>
python -V
python -V
</source>
</source>


==실행 예시==
;실행 예시
<source lang='dos'>
<source lang='dos'>
[root@localhost ~]# python -V
[root@jmnote ~]# python -V
Python 2.4.3
Python 2.4.3
</source>
</source>
==방법 2: rpm==
<source lang='dos'>
[root@jmnote ~]# rpm -qa python
python-2.4.3-44.el5_7.1
</source>
:→ 2.4.3
==방법 3: yum==
<source lang='dos'>
[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
</source>
:→ 2.4.3


==같이 보기==
==같이 보기==

2013년 4월 14일 (일) 11:58 판

파이썬 버전 확인하기
Python 버전 확인

1 방법 1: python

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

2 방법 2: rpm

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

3 방법 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
→ 2.4.3

4 같이 보기

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