예) python3.9.6
https://www.python.org/downloads/
Python 3.9.6 의 download 클릭
아래로 이동해서 “Gzipped source tarball” 링크 추출
$ wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz
$ tar xzvf Python-3.9.6.tgz
$ cd Python-3.9.6
$ ./configure –enable-optimizations
$ make altinstall
$ which python3.9
/usr/local/bin/python3.9
$ vi /root/.bashrc
[code]
alias python=”/usr/local/bin/python3.9″ #추가
[/code]
$ source /root/.bashrc
$ python –version