you can run in the terminal which python3 to find the dir where python installed this way you will know the package manager that was used to install python by the category then use the same package manager to update the version.
Hope this Helps :)