Issue
It looks like you are trying to use different pip version with different python version on Ubuntu 16.04,
Solution
- Remove Currently installed pip
sudo apt remove python3-pip
- Install Correct pip version. Assuming python version is 3.8, we can install pip for python 3.8 using easy install
sudo python3.8 -m easy_install pip
Now you can use pip with python 3.8