PyMC v5.0.1 - tutorials in docs page not working from the conda environment (Windows 11)

It looks like you may be running into one of the issues discussed here. I would start by wrapping your script in a function and wrapping a call to that function in an if __name__ == '__main__': statement. If one of the solutions discussed there works for you, great. If not, let us know and/or you can open a new issue (as you can see, that issue was closed because it turned into a combination of several different issues).