본문 바로가기

728x90

python3 install

[draft] 우분투에서 apt를 사용하여 최신 Python 버전 설치 및 기본 설정하는 방법 우분투에서 apt를 사용하여 최신 Python 버전 설치 및 기본 설정하는 방법1. PPA 추가(deadsnakes PPA)우분투의 기본 저장소에 최신 Python 버전이 포함되지 않은 경우가 많으므로 최신 Python 버전을 설치하려면 deadsnakes PPA를 추가해야 합니다.sudo apt updatesudo apt install -y software-properties-commonsudo add-apt-repository -y ppa:deadsnakes/ppasudo apt update2. 최신 Python 버전 설치최신 Python 버전을 설치하려면 apt 명령어를 사용합니다.sudo apt install -y python3.13which python3.13$ which python3.13/u.. 더보기
[draft] 우분투에 최신 버전의 파이썬를 설치하는 방법 [draft] 우분투에 최신 버전의 파이썬를 설치하는 방법1. PPA(deadsnakes) 등록하여 최신 버전의 파이썬를 설치하는 방법[Pre-releases]PPA 등록PPA(deadsnakes)를 등록합니다.sudo add-apt-repository ppa:deadsnakes/ppasudo apt-get update설치PPA를 등록한 후에는 apt-get install 명령어를 사용하여 원하는 버전의 파이썬을 설치합니다.sudo apt-get install -y python3.13실행 파일 변경새로 설치한 Python 버전의 실행 파일을 기본 Python 실행 파일로 변경합니다.rm /usr/bin/python3sudo ln -sf /usr/bin/python3.13 /usr/bin/python3버전.. 더보기
CentOS 7에서 python3 업그레이드 CentOS 7에서 python3 업그레이드 테스트 환경 운영체제 버전 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) python 버전 $ python --version Python 2.7.5 $ python3 --version Python 3.6.8 SCL 유틸리티 설치 yum install -y centos-release-scl python 업그레이드 python3.8 설치 yum install -y rh-python38 rh-python38-python-pip python 버전 $ /opt/rh/rh-python38/root/usr/bin/python --version Python 3.8.11 alternatives 확인 altern.. 더보기
Ubuntu 18.04 LTS에서 Python 3.9으로 업그레이드하는 방법 Ubuntu 18.04 LTS에서 Python 3.9으로 업그레이드하는 방법 테스트 환경 $ cat /etc/os-release NAME="Ubuntu" VERSION="18.04.6 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.6 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/pri.. 더보기

728x90