The specific error you’re getting will be solved in Do not generate C code for BatchedDot when BLAS flags are missing by ricardoV94 · Pull Request #550 · pymc-devs/pytensor · GitHub
But the fact you hit it means your installation is suboptimal and in some models may result in much slower sampling (hence why we always suggest installing from conda instead of pip)