-
우분투(16.04 LTS)에 파이썬 3.6 설치하기개발 팁/Embedded 2018. 4. 16. 16:41반응형
우분투(16.04 LTS)에 파이썬 3.6 설치하기
우분투 16.04 LTS에 설치된 파이썬은 2.7과 3.5이다. 하지만 여러가지 패키지들이 3.6 이상을 원하는 경우가 많다. 파이썬 3.6을 설치하려면 아래 명령을 참고한다.
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update sudo apt-get install python3.6
이상의 과정을 마치면 시스템에는 파이썬 2.7, 파이썬 3.5, 그리고 파이썬 3.6이 설치된 상태이다. 아래 명령을 통해 버전을 확인해 보자.
python -V
python3 -V
python3.6 -V
현재 파이썬 3의 디폴트값이 3.5로 되어 있는데, 이것을 3.6으로 변경하려면 아래 명령을 수행한다.
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
이제 Python3의 디폴트값이 3.6으로 변경되었다. 나중에 이를 다시 3.5로 변경하려면 아래 명령을 수행한다. 이후 화면의 명령을 따르면 된다.
sudo update-alternatives --config python3
출처
http://ubuntuhandbook.org/index.php/2017/07/install-python-3-6-1-in-ubuntu-16-04-lts/
반응형'개발 팁 > Embedded' 카테고리의 다른 글
MMAP 뜻과 사용 예제 (0) 2018.04.25 ARM9 assembly 어셈블리 source - SourceInsight 소스인사이트 파싱 Parsing File(CLF) (0) 2017.11.13 ARM MBED 엠베드 7 세그먼트(Grove 4-Digit Display) 구동 방법 (0) 2017.11.12 ARM 엠베드 MBED 백색잡음 White Noise 생성 (0) 2017.11.12 ARM MBED 엠베드 핀이름 헤더 파일 찾기 (0) 2017.11.12