pip upgrade is not working, shows it upgraded by version is still showing old version
root@ubuntu:~# pip install --upgrade pip
Collecting pip
Downloading pip-22.0.3-py3-none-any.whl (2.1 MB)
|████████████████████████████████| 2.1 MB 11.9 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'pip'. No files were found to uninstall.
Successfully installed pip-22.0.3
root@ubuntu:~# pip -V
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
root@ubuntu:~# pip install --upgrade pip
Collecting pip
Using cached pip-22.0.3-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'pip'. No files were found to uninstall.
Successfully installed pip-22.0.3
root@ubuntu:~# pip -V
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
here are locations of python/pip
root@ubuntu:~# which pip
/usr/local/bin/pip
root@ubuntu:~# which pip3
/usr/local/bin/pip3
root@ubuntu:~# which python
/usr/bin/python
root@ubuntu:~# which python3
/usr/bin/python3
root@ubuntu:~# python3 -V
Python 3.8.10
root@ubuntu:~# python -V
Python 3.8.10
root@ubuntu:~# pip3 -V
pip 22.0.3 from /usr/local/lib/python3.8/dist-packages/pip (python 3.8)
root@ubuntu:~# pip -V
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
i will like to cleanly point pip to pip3, like i did with apt install python-is-python3
is there a package like apt install pip-is-pip3
?
I am trying to shy away from creating symlinks manually myself