우분투16.04 부터는 deadsnake 추가해서 하는 방법으로는 python3.5까지만 쓸 수 있게 됨
우분투 16.04에 3.8설치 하려면 다른방법으로 해야한다.
https://dlehdgml0480.tistory.com/8
ubuntu 16.04 에서 파이썬 최신버전(Python 3.8) 설치 & 디폴트로 설정
요새 파이썬으로 재밌게 개발하고 있는데. 생각보다 파이썬을 latest stable 버전으로 설치하는 방법이 깔끔하게 나오는 포스팅이 없었다. 그리고 패키지 매니저를 사용하니 에러도 많이 발생하고.
dlehdgml0480.tistory.com
여기 참조함 ( 소스 컴파일 하는 방법 )
103 sudo apt-get install build-essential checkinstall
104 sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
105 cd /opt
106 ls
107 sudo wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
108 ls -al
109 sudo tar xzf Python-3.8.1.tgz
110 ls
111 cd Python-3.8.1/
112 sudo ./configure --enable-optimizations
113 sudo make altinstall
114 python3.8 -V
115 whereis python3.8
116 update-alternatives --install /usr/bin/python python /usr/local/bin/python3.8 1
117 python -V
확인
'언어 정리 > python_설치' 카테고리의 다른 글
python 버전 변경 (1) | 2022.08.17 |
---|
댓글