how did you install weewx on the centos7 system? did you use the rpm/yum or did you do a setup.py install?
if you did the rpm/yum install, then you can do this:
1) install python3 and the weewx python3 pre-requisites
2) change /etc/default/weewx to use python3 instead of python
beware that (1) can be a hassle on centos7. you will probably want to update python using pip, not rpm/yum. so that means you might want to install your own python3, not a system-wide python3. ymmv. it is not difficult, but there are a lot of rabbit holes that dead end in places that you do not want to be.
if you did a setup.py install, then you can do (1) then reinstall weewx using 'python3 install' instead of 'python install'. be sure to make a snapshot of the /home/weewx directory first (in particular, make a copy of your database, skins, and user directory)
if your intent is to move to centos8, then you might want take the leap. just install centos8, install weewx, then copy your db/skins/user stuff from the old weewx installation. this assumes that you have a new, separate computer on which to install centos8.
i would avoid upgrading centos7 to centos8 - that process can leave turds that make a mess (or at least cause confusion) later on.
m