반응형
우분투 22.04 LTS는 python 명령을 지원하지 않고, python3만을 사용한다.
python 명령이 python3로 동작하도록 변경할 수 있다.
ubuntu@django-instance:~$ python3 --version
Python 3.10.12
ubuntu@django-instance:~$ python --version
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
ubuntu@django-instance:~$ sudo add-apt-repository ppa:deadsnakes/ppa
ubuntu@django-instance:~$ sudo apt install -y python3.12 python3.12-venv
ubuntu@django-instance:~$ python3.12 --version
Python 3.12.4
ubuntu@django-instance:~$ which python3.12
/usr/bin/python3.12
ubuntu@django-instance:~$ python --version
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
ubuntu@django-instance:~$ curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3.12
Collecting pip
ubuntu@django-instance:~$ python3.12 -m pip --version
pip 24.2 from /usr/local/lib/python3.12/dist-packages/pip (python 3.12)
반응형
'Django > 인프라' 카테고리의 다른 글
[AWS Lightsail] 시스템 서비스로 장고 애플리케이션 배포 (0) | 2024.08.06 |
---|---|
[AWS Lightsail] 가상환경 생성 및 패키지 설치 (0) | 2024.08.06 |
[AWS Lightsail] 리눅스 가상머신 생성 (0) | 2024.08.06 |
가상머신 VS 컨테이너 (0) | 2023.12.18 |
docker - getting disk info ... permission denied 에러 (0) | 2023.05.04 |
반응형
우분투 22.04 LTS는 python 명령을 지원하지 않고, python3만을 사용한다.
python 명령이 python3로 동작하도록 변경할 수 있다.
ubuntu@django-instance:~$ python3 --version
Python 3.10.12
ubuntu@django-instance:~$ python --version
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
ubuntu@django-instance:~$ sudo add-apt-repository ppa:deadsnakes/ppa
ubuntu@django-instance:~$ sudo apt install -y python3.12 python3.12-venv
ubuntu@django-instance:~$ python3.12 --version
Python 3.12.4
ubuntu@django-instance:~$ which python3.12
/usr/bin/python3.12
ubuntu@django-instance:~$ python --version
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
ubuntu@django-instance:~$ curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3.12
Collecting pip
ubuntu@django-instance:~$ python3.12 -m pip --version
pip 24.2 from /usr/local/lib/python3.12/dist-packages/pip (python 3.12)
반응형
'Django > 인프라' 카테고리의 다른 글
[AWS Lightsail] 시스템 서비스로 장고 애플리케이션 배포 (0) | 2024.08.06 |
---|---|
[AWS Lightsail] 가상환경 생성 및 패키지 설치 (0) | 2024.08.06 |
[AWS Lightsail] 리눅스 가상머신 생성 (0) | 2024.08.06 |
가상머신 VS 컨테이너 (0) | 2023.12.18 |
docker - getting disk info ... permission denied 에러 (0) | 2023.05.04 |