Cannot import name '_vectorize_node' from 'pytensor.graph.replace'

re-install pymc=5.15.1, pytensor=2.5.13,pytensor-base=2.22.1,pymc-bart=0.5.14. It works, but very slow. When update pytensor=2.22.1, get error: module ‘pytensor’ has no attribute ‘config’
I think the problem is pytensor version.