I'm not sure about 10.6.8, but Python.h should be in
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
if you installed the official python.org binary. Try to add
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
into the gcc command and see if this works.
source share