Pytensor g++ not detected

I recall having this issue. I used a pip install of PyMC and got the same message. What worked for me on that system was to directly install g++ which was not actually installed already.