How to install python3 and pip3 in Ubuntu 16.04
The following guide will help you get started with installing python3 and pip3 on Ubuntu 16.04.
First install python 3 from the “deadsnakes” repository from the Python Package Accesories ( PPA )
Add the package to repository
$ sudo add-apt-repository ppa:deadsnakes/ppa
Update the repository
$ sudo apt-get update
Now Install python using
$ sudo apt-get install python3.8
This will install python 3.8 on your machine.
Verify the installation by running python3 –version or python –version on the linux command line.
Next up, install pip3 package manager that will allow you to install other useful python libraries.
Update the repository
$ sudo apt-get update
Install the python3-pip by running following commands
$ sudo apt-get install python3-setuptools
$ sudo apt install python3-pip
Verify the installation by running pip3 –version on the command line.