centos7에는 기본적으로 Python 2.7.5 (default, Oct 14 2020, 14:45:30)가 설치되어있다.
현재 사용중인 python 코드의 버전은 3.7.9이여서 버전 업그레이드를 했다.
# python -v
Python 2.7.5 (default, Oct 14 2020, 14:45:30)
# yum -y install python3
# which python3.6
/bin/python3.6
# update-alternatives --install /bin/python python /bin/python3.6 1
# vi /usr/libexec/urlgrabber-ext-down
#! /usr/bin/python2.7 //2.7로 수정
# vi /usr/bin/yum
#! /usr/bin/python2.7 //2.7로 수정
# python3.6 -m pip install --upgrade pip
# python -v
Python 3.6.8 (default, Nov 16 2020, 16:55:22)
'Development > Python' 카테고리의 다른 글
[Python] ERROR: command errored out with exit status 1 오류 (0) | 2023.02.06 |
---|---|
[Python] centos6/7에 python3.7.9 설치 하기 (0) | 2023.01.30 |
[Selenium] chromedriver headless 옵션에 대하여 (0) | 2023.01.26 |
[Python] 튜플, 리스트, 딕셔너리 차이 (0) | 2023.01.25 |
파이썬 for _ in에서 언더바(_)란? (0) | 2023.01.15 |