If you install python 2.7, then it may be because of pth location. Configure script generates small program to get version number of python and it calls pth.h in Python.h that fails. see your configure.log. It seems that it does not reflect the relocation of pth. Regards,