Today I faced a problem regarding pip3 in Ubuntu. Ubuntu comes with python 3.8 but I wanted to use latest versions of python, like 3.9 or maybe 3.10. So I installed it using 'ppa:deadsnakes' repository and also installed pip. But the problem is I want to use pip in python 3.9 instead of version 3.8. So I changed the default python version to 3.9 and everything crashed. So reverted to python 3.8. Whenever I install some package it gets installed using python 3.8. Help me, how can I use python 3.9 pip and install packages in python 3.9 without changing the default version. Any help is appreciated.
--> Thing I want is that when I want to install python package using
pip3 install <package_name>
it must install in python3.9 and not in python3.8