You shouldn’t mix pymc3, pymc, theano, theano-pymc, and pytensor all in the same environment. It can lead to namespace collisions because of overlaps in the code bases. I suspect this is what is happening here.
I strongly recommend making a new environment (following the official installation guide), and that you stick to the most recent version of PyMC, which is 5.9.1.