[Python] Centos-6 에서 최신 Python 모듈 사용하기
2017.11.07
Centos-6에서 기본적으로 설정되어 있는 yum repository를 통해서는 python 2.6.6 까지 밖에 설치가 되지 않는다.
하지만 많은 경우 python 2.6.6 에서 제공되지 않는 PyPI를 사용해야 하는 경우가 생기는데, 이럴 때 아래 repository를 넣어주면 된다.
* 사전 준비사항
$ sudo yum install python-setuptools
($ sudo yum upgrade python-setuptools)
$ sudo yum install python-pip python-wheel
* PyPA 저장소 추가
$ vi /etc/yum.repo/CentOS-Pypa.repo
-------------------------------------------
[pypa-pypa] name=Copr repo for pypa owned by pypa baseurl=https://copr-be.cloud.fedoraproject.org/results/pypa/pypa/epel-6-$basearch/ type=rpm-md skip_if_unavailable=True gpgcheck=1 gpgkey=https://copr-be.cloud.fedoraproject.org/results/pypa/pypa/pubkey.gpg repo_gpgcheck=0 enabled=1 enabled_metadata=1
-------------------------------------------
* 재확인 사항
$ sudo yum install python-setuptools
($ sudo yum upgrade python-setuptools)
$ sudo yum install python-pip python-wheel
* 참조
(https://packaging.python.org/guides/installing-using-linux-tools/#installing-pip-setuptools-wheel-with-linux-package-managers)
(https://fedoraproject.org/wiki/EPEL)
(https://copr.fedorainfracloud.org/coprs/pypa/pypa/)