You probably have multiple python installations. You can check the executable path with which pip3 and which python3 and you will see that they have a different location. your PATH variable defines which python installation is picked first, you can check that with echo $PATH, what comes first is used first
Never use the pip, pip3, etc. scripts. Instead always call pip's executable module for a specific Python interpreter explicitly: pythonX.Y -m pip .... -- snarky.ca/why-you-should-use-python-m-pip
As the comments have already said, it looks like you have 2 python versions installed, so you either want to uninstall one of them or use python3.8 -m pip instead of just pip3
which pip3andwhich python3and you will see that they have a different location. your PATH variable defines which python installation is picked first, you can check that withecho $PATH, what comes first is used firstpip,pip3, etc. scripts. Instead always call pip's executable module for a specific Python interpreter explicitly:pythonX.Y -m pip .... -- snarky.ca/why-you-should-use-python-m-pip