[centOS7] Python 버전 업그레이드하기

2023. 1. 26. 16:38·Development/Python

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
'Development/Python' 카테고리의 다른 글
  • [Python] ERROR: command errored out with exit status 1 오류
  • [Python] centos6/7에 python3.7.9 설치 하기
  • [Selenium] chromedriver headless 옵션에 대하여
  • [Python] 튜플, 리스트, 딕셔너리 차이
곽진돔
곽진돔
Developer
  • 곽진돔
    echo "곽박한 세상";
    곽진돔
  • 전체
    오늘
    어제
    • 분류 전체보기 (184)
      • Development (57)
        • Linux (13)
        • k8s (3)
        • Docker (5)
        • AWS (1)
        • PHP (35)
        • Python (21)
        • Java (1)
        • SpringBoot (4)
        • JavaScript (1)
        • React (8)
        • MySql (19)
        • MongoDB (1)
      • Daily (4)
      • Study (6)
        • TIL (1)
        • license (3)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 글쓰기
    • 설정
  • 링크

    • github
  • 공지사항

  • 인기 글

  • 태그

    Java
    IP
    리액트
    리눅스
    Python
    ssh
    nodejs
    CentOS
    UTF8
    SQL
    HTML
    Linux
    springboot
    JavaScript
    error
    date
    php
    db
    윈도우
    MySQL
    Shell
    docker
    react
    크롤링
    chromedriver
    정규표현식
    Selenium
    인코딩
    CentOS7
    스프링부트
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
곽진돔
[centOS7] Python 버전 업그레이드하기
상단으로

티스토리툴바