fatal error: Python.h: No such file or directory

    src/MD2.c:31:20: fatal error: Python.h: No such file or directory
     #include "Python.h"
                        ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-pfOapp/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ppFlB3-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-pfOapp/pycrypto/
[root@puppet ~]#



Solution :

yum install python-devel   ( for Centos / Rhel )