Pytensor g++ not detected

I suspect that you installed PyMC using an method other than the recommended procedure found here. If you create a new environment using those instructions, does it fix things?