CentOS7 Python 3 설치

1 개요[ | ]

CentOS7 Python 3 설치
root@centos7:~# python -V
Python 2.7.5
root@centos7:~# pip -V
-bash: pip: command not found
root@centos7:~# python3 -V
-bash: python3: command not found
root@centos7:~# yum install python3
...
Dependencies Resolved

==============================================================================================================================
 Package                             Arch                    Version                           Repository                Size
==============================================================================================================================
Installing:
 python3                             x86_64                  3.6.8-13.el7                      base                      69 k
Installing for dependencies:
 python3-libs                        x86_64                  3.6.8-13.el7                      base                     7.0 M
 python3-pip                         noarch                  9.0.3-7.el7_7                     updates                  1.8 M
 python3-setuptools                  noarch                  39.2.0-10.el7                     base                     629 k

Transaction Summary
==============================================================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 9.4 M
Installed size: 48 M
Is this ok [y/d/N]: y
...
Installed:
  python3.x86_64 0:3.6.8-13.el7

Dependency Installed:
  python3-libs.x86_64 0:3.6.8-13.el7     python3-pip.noarch 0:9.0.3-7.el7_7     python3-setuptools.noarch 0:39.2.0-10.el7

Complete!
root@centos7:~# python -V
Python 2.7.5
root@centos7:~# pip -V
-bash: pip: command not found
root@centos7:~# python3 -V
Python 3.6.8
root@centos7:~# pip3 -V
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)

2 같이 보기[ | ]

3 참고[ | ]

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