서론
ubuntu 18.04에서 기본으로 지원하는 python은 3.6 버전.
apt 패키지 관리자에서 지원해 주는 버전도 3.8까지가 최대.
최신 버전을 사용하기 위해서는 설치 파일을 직접 다운로드해서 설치해야 함.
설치
Python Source Releases for Source release
The official home of the Python Programming Language
www.python.org
# 다운로드
wget https://www.python.org/ftp/python/3.12.1/Python-3.12.1.tgz
# 압축해제
tar -xvzf Python-3.12.1.tgz
# 설치
cd Python-3.12.1
./configure
sudo make altinstall
# 확인
python3.12 --version
'프로그래밍' 카테고리의 다른 글
[python] matplotlib 한글 깨짐 & 글자 겹치는 문제 해결 (0) | 2024.01.27 |
---|---|
[python] Matplotlib AttributeError: 'AxesSubplot' object has no attribute 'bar_label’ (0) | 2024.01.23 |
[linux] 기본적인 명령어 정리 (0) | 2024.01.19 |
[Node.js] npm init & package.json (0) | 2024.01.18 |
[python] 데이터 시각화(차트) 라이브러리(Matplotlib, Seaborn, Plotly) (0) | 2024.01.16 |