Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 3-Tier
- 카카오톡오픈빌더
- 기기변경
- Synology
- GKE
- iOS로 이동
- 카카오톡 오픈빌더
- e프라이버시 클린서비스
- 웹아키텍처
- airflow
- 챗봇
- 백준
- 데이터베이스
- kubernetes
- 힙
- was서버
- docker
- Apache Airflow
- dfs
- node.js
- Google Cloud Platform
- BFS
- Google Kubernetes Engine
- stack
- 카카오톡
- 2-tier
- Nas
- 카카오톡챗봇
- WEB서버
- GCP
Archives
- Today
- Total
공부하는 밍
[python/ubuntu] ubuntu에서 python 버전 변경하기 본문
python 2.7에서 python 3.9로 변경하는 등 python 버전을 변경해야 할 때가 있다.
$ python --version
Python 2.7.16
이 때 아래 명령어를 사용하면 python 버전 변경이 가능하다.
(변경하고자 하는 버전이 설치되어 있다는 가정 하에)
# 1번에 python3.9 등록
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1
# 2번에 python3.9 등록
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2
그 다음에 아래 명령어를 사용하면 사용할 버전을 선택할 수 있다.
$ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/python3.5 2 auto mode
1 /usr/bin/python3.5 2 manual mode
* 2 /usr/bin/python3.9 1 manual mode
Press <enter> to keep the current choice[*], or type selection number:
원하는 버전 번호를 선택해주면 된다.
3.9버전을 사용하고자 하면, 2를 쓰고 enter 눌러주면 완료!
$ python --version
Python 3.9.4
'IT 지식 > Kubernetes' 카테고리의 다른 글
[Kubernetes] Mac docker desktop에서 GKE(Google Kubernetes Engine) 사용 방법 (0) | 2021.11.05 |
---|---|
[Kubernetes] Synology NAS 서버에 Docker 설치하기 (0) | 2021.03.12 |
[Kubernetes] 도커? 쿠버네티스? 오픈시프트? (0) | 2021.03.08 |
[Kubernetes] 쿠버네티스 관련 개념정리 (0) | 2021.03.03 |
Comments