Install Python Dev Headers on Amazon Linux

Took me forever to figure this out:

If you need to install Python 3.8 on Amazon Linux and also need the development headers, you can install the development headers like so:

yum install python38-devel -y

This is an example of the error you will get that requires you to install the Python header files:

c/_cffi_backend.c: fatal error: Python.h: No such file or directory

Show Comments