Cannot import name 'solve_triangular' from 'pytensor.tensor.linalg'

This is an old bug that has been fixed in the most recent PyMC. Did you follow the installation guide? If not, what steps did you take?