Failed to install ansible on Ubuntu 14

I am getting an error while installing ansible on Ubuntu 14:

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory

The full error log in the issue details:
https://github.com/ansible/ansible/issues/18578

Anyone familiar with it? Any workaround?

this is how I install Ansible, worked on ubuntu 14.04 last time I checked. See if you’re missing a package?
https://gist.github.com/trondhindenes/01cbcd3e3a98ff57fc00cc5fde97545a