I just installed curl and now I am getting further.
sudo apt-get install curl
make worked to a point and now I have
Downloading
https://pypi.python.org/packages/source/r/readline/readline-6.2.4.1.tar.gz#md5=578237939c81fdbc2c8334d168b17907Processing readline-6.2.4.1.tar.gz
Writing /tmp/easy_install-FYyy3c/readline-6.2.4.1/setup.cfg
Running readline-6.2.4.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-FYyy3c/readline-6.2.4.1/egg-dist-tmp-_LsKx0
Modules/2.x/readline.c:8:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Makefile:76: recipe for target '/home/nubminer/p2pool/.cache/pyenv/pyenv-1.11.6-extras.tar.gz' failed
make: *** [/home/nubminer/p2pool/.cache/pyenv/pyenv-1.11.6-extras.tar.gz] Error 1