Debian version is below
aaaa@penguin:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.12 (stretch)
Release: 9.12
Codename: stretch
Python 3.5 is included by default.
aaaa@penguin:~$ python3 -V
Python 3.5.3
I also wanted to use the latest version of Python, so I introduced it by following the steps below.
At the moment (2020/03), 3.8.2 is the latest https://www.python.org/downloads/release/python-382/ Drop the source from the above page and build (Wget the link for Files> Gzipped source tarball)
aaaa@penguin:~$ cd /usr/local/src
aaaa@penguin:~$ wget https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tgz
aaaa@penguin:~$ sudo tar zxvf Python-3.8.2.tgz
Build
aaaa@penguin:~$ cd Python-3.8.2
aaaa@penguin:~$ ./configure
aaaa@penguin:~$ make
aaaa@penguin:~$ make altinstall
Has entered
aaaapenguin:~$ python3.8 -V
Python 3.8.2
aaaa@penguin:~$ pip3 -V
pip 20.0.2 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
Recommended Posts