You can call this python version now in the terminal with $python3.9 but it is not the main python version on your system,yet. $ python3 --version
will give you the old version, because it is the "first" python on your system. We have to change it to the right alternative version.
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.[old-version] 1
Now we add the new version as an alternative
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2
type the following command to configure the priority status of the versions: