[Tips] python3.11 설치 - Ubuntu 20.04
python3.11이 그렇게 빨라졌다고해서 설치를 해보려 했다...
근데 Ubuntu 20.04에서는 apt update를 해도 패키지를 못찾음...
그래서 결국 구글신의 힘을 빌려 설치를 했다.
[설치]
sudo apt update
sudo apt install software-properties-common -y
sudo -E add-apt-repository 'ppa:deadsnakes/ppa' -y
sudo apt update
sudo apt install python3.11 -y
- 참고로 여기서 ppa:deadsnakes/ppa 는 파이썬 3.x에 대한 패키지를 가지고 있는 레퍼런스라고 한다.
- 그리고 나는 add-apt-repository를 사용할 때 "Error: ~ user or team does not exist." 라며 레포지토리를 찾을 수 없다는 에러가 발생했는데 이는 다음과 같이 해결했다. https://oz1ng019.tistory.com/139
[Tips] add-apt-repository Error: user or team does not exist. 오류 해결
python3.11을 Ubuntu 20.04에 설치하려고 아래의 레포를 추가하려고 하니 다음과 같은 에러가 발생했습니다. 그래서 이 에러를 해결하기 위해 삽질한 내용을 정리해봤습니다. 일단 이런 문제가 발생하
oz1ng019.tistory.com
[확인]
이렇게 설치를 완료했다.
[pip 설치]
python3.11에서는 pip을 같이 제공하지 않는다고 한다.
그래서 다음의 명령어로 설치했다.
sudo apt install python3.11-distutils -y
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
노마드코더 유튜브 보니까 최대 60% 정도 더 빨라졌다는데 너무 기대된다 ㅋㅋ
[참고]
- https://linuxways.net/ubuntu/how-to-install-python-3-11-on-ubuntu-20-04/
- https://stackoverflow.com/questions/66597894/why-cannot-add-ppa-deadsnakes
- https://stackoverflow.com/questions/70260339/cant-run-pip-on-python-3-11