apt-get install python3.8 -> e: unable to locate package python3.8 오류 발생 시
(1) 라이브러리 설치
$ sudo apt-get update
$ sudo apt-get install build-essential checkinstall
$ 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
(2) python 3.8 download
$ cd /opt
$ sudo wget https://www.python.org/ftp/python/3.8.19/Python-3.8.19.tgz
$ sudo tar xzf Python-3.8.19.tgz
(3) install
$ cd Python-3.8.19
$ sudo ./configure --enable-optimizations
$ sudo make altinstall
* 가상환경 (참고)
$ python3.8 -m venv venv
'Language > Python' 카테고리의 다른 글
[Python] type (0) | 2022.07.01 |
---|---|
[Python] type annotation (type hint) (0) | 2022.02.27 |
[Python] pip requirements.txt (0) | 2022.01.31 |
[Python] AES 암호/복호화 (2) | 2022.01.31 |
[Python] Object type <class 'str'> cannot be passed to C code (AES) (0) | 2022.01.31 |