°Ô½Ã¹° 259°Ç
   
[centOS6.9] python3 ¼³Ä¡
±Û¾´ÀÌ : theko ³¯Â¥ : 2020-07-09 (¸ñ) 18:58 Á¶È¸ : 2374

1. python3 repo ±¸¼º

# yum install  https://repo.ius.io/ius-release-el6.rpm

# ll    //ÆÄÀÏ »ý¼º È®ÀÎ
total 52
drwxr-xr-x. 2 root root 4096 Apr 27 20:25 bak
-rw-r--r--. 1 root root 1991 Aug  4  2015 CentOS-Base.repo
-rw-r--r--. 1 root root  647 Aug  4  2015 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root  289 Aug  4  2015 CentOS-fasttrack.repo
-rw-r--r--. 1 root root  630 Aug  4  2015 CentOS-Media.repo
-rw-r--r--. 1 root root 6259 Aug  4  2015 CentOS-Vault.repo
-rw-r--r--  1 root root  957 Jul  9 15:55 epel.repo
-rw-r--r--  1 root root 1056 Nov  5  2012 epel-testing.repo
-rw-r--r--  1 root root  669 May  2  2019 ius-archive.repo
-rw-r--r--  1 root root  591 May  2  2019 ius.repo
-rw-r--r--  1 root root  669 May  2  2019 ius-testing.repo

2. epel.repo ÆÄÀÏ ¼öÁ¤

. baseurl ÁÖ¼®À» Á¦°Å ÇÏ°í mirrorilist ¸¦ ÁÖ¼®Ã³¸®

baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
...»ý·«..

3. python3 ¼³Ä¡
# yum install  python36u python36u-libs python36u-devel python36u-pip

Installing:
 python36     x86_64         3.6.8-2.el6.ius                          ius                       58 k
 python36-devel x86_64       3.6.8-2.el6.ius                          ius                      207 k
 python36-libs  x86_64        3.6.8-2.el6.ius                          ius                 8.4 M
 python36-pip  noarch       9.0.1-2.el6.ius                          ius                      1.8 M
Installing for dependencies:
 python-rpm-macros   noarch     3-15.el6                           epel                     6.7 k
 python-srpm-macros  noarch     3-15.el6                           epel                     5.9 k
 python3-rpm-macros  noarch     3-15.el6                                 epel                     5.6 k
 python36-setuptools  noarch      39.2.0-4.el6.ius                  ius                      777 k
 redhat-rpm-config    noarch      9.0.3-51.el6.centos                      base                      60 k

*¸¸¾à ´Ù¸¥¼­¹ö¿¡ ÀÌRPM¸¦ ¼³Ä¡ÇÒ¶§´Â redhat-rpm-config ÆÐÅ°Áö´Â ÇØ´ç OS ¹öÀü(ISO±âÁØ)¿¡ ¸Â´Â°ÍÀ» ¼³Ä¡ÇØÁØ´Ù.

3. python È®ÀÎ
# python -V
Python 2.7.5

# python3.6 -V
Python 3.6.4


4. python path º¯°æ

# which python3.6
 /usr/bin/python3.6

# sudo unlink /usr/bin/python
# sudo ln -s /usr/bin/python3.6 /usr/bin/python3
# sudo ln -s /usr/bin/python3.6 /usr/bin/python
# sudo ln -s /usr/bin/pip3.6 /usr/bin/pip


# python -V
Python 3.6.4




À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com