pymc3 and theano-pymc are legacy packages that are no longer officially supported or maintained. It’s strongly recommended that you upgrade to the latest version of PyMC (5.9.1), by following the official installation guide.
If, for whatever reason, you are totally unable to switch to the latest version, you are going to need to manually specify that older versions of dependencies be installed. In this case, the error tells you that numpy depreciated np.bool
in version 1.20.0, so you will need to downgrade numpy to less than 1.20.0.