I've been trying to install the latest Twisted 18.9.0 with pip install, (using Oracle LInux 7.4),  but I'm getting compilation errors.  The first one was:

src/twisted/test/raiser.c:4:20: fatal error: Python.h: No such file or directory
#include "Python.h"

I was able to work around that, but now I"m getting this error:

gcc -pthread -shared -Wl,-z,relro -g -L ./python3.6m build/temp.linux-x86_64-3.6/src/twisted/test/raiser.o -L/usr/lib64 -lpython3.6m -o build/lib.linux-x86_64-3.6/twisted/test/raiser.cpython-36m-x86_64-linux-gnu.so
    /etc/alternatives/ld: cannot find -lpython3.6m
    collect2: error: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1

Since the compile is under the control of all the install scripts, I can't determine where the linker is looking for "python36m". 

Any help would be much appreciated!