I have the following situation:
Python version is 3.8.2, but Python version of pip3 is 3.9. How can I change it?
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalI have the following situation:
Python version is 3.8.2, but Python version of pip3 is 3.9. How can I change it?
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