anaconda – fatal error: Python.h: no file or directory of this type

I'm trying to install cocoapi but I do not have Python.h. I read that I had to install python-dev but I do not have sudo. Are there any others easy ways to get Python.h? Will I have Python.h if I install Anaconda?

(env_pytorch) haziq @ vita-workstation2: ~ / cocoapi / PythonAPI $ python3 setup.py install --user
currently being installed
launch bdist_egg
launch egg_info
write pycocotools.egg-info / PKG-INFO
write dependency_links to pycocotools.egg-info / dependency_links.txt
Writing requirements in pycocotools.egg-info / require.txt
write top-level names in pycocotools.egg-info / top_level.txt
read manifest file & pycocotools.egg-info / SOURCES.txt & # 39;
writing the manifest file pycocotools.egg-info / SOURCES.txt & # 39;
Installing the library code to build / bdist.linux-x86_64 / egg
run install_lib
running build_py
running build_ext
ignore the Cython extension & # 39; pycocotools / _mask.c & # 39; (up to date)
construction of the extension pycocotools._mask & # 39;
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror = format-security -Wdate-time -D_FORTIFY_SOURCE = 2 -fPIC -I / home / haziq / .local / lib / python3.7 / site-packages / numpy / core / include -I ../ common -I / usr / include / python3.7m-c ../common/maskApi.c -o build / temp.linux-x86_64-3.7 /../common/maskApi.o -Wno-cpp -Wno-in-function -std = c99
../common/maskApi.c: In the function & # 39; rleDecode & # 39 ;:
../common/maskApi.c:46:7: be careful: this clause "for" does not protect ... [-Wmisleading-indentation]
       for (k = 0; k <R[i].cnts[j]; k ++) * (M ++) = v; v =! v; }}
^ ~~
../common/maskApi.c:46:49: note: ... this statement, but this one is indented improperly as if it were kept by the "for"
for (k = 0; k <R[i].cnts[j]; k ++) * (M ++) = v; v =! v; }}
^
../common/maskApi.c: In the function & rt; rleFrPoly & # 39 ;:
../common/maskApi.c:166:3: beware: this clause "for" does not protect ... [-Wmisleading-indentation]
   for (j = 0; j <k; j ++) x[j]= (int) (scale * xy[j*2+0]+ 5); X[k]= x[0];
^ ~~
../common/maskApi.c:166:54: note: ... this statement, but this one is indented unduly as if it were kept by the "for"
for (j = 0; j <k; j ++) x[j]= (int) (scale * xy[j*2+0]+ 5); X[k]= x[0];
^
../common/maskApi.c:167:3: beware: this clause "for" does not protect ... [-Wmisleading-indentation]
   for (j = 0; j <k; j ++) y[j]= (int) (scale * xy[j*2+1]+ 5); there[k]= y[0];
^ ~~
../common/maskApi.c:167:54: note: ... this statement, but it is misleadingly indented as if it were kept by the "for"
for (j = 0; j2) x + = (long) cnts[m-2]; cnts[m++]= (uint) x;
^ ~
../common/maskApi.c:228:34: note: ... this statement, but it is misleadingly indented as if it were kept by the "if"
if (m> 2) x + = (long) cnts[m-2]; cnts[m++]= (uint) x;
^ ~~~
../common/maskApi.c: In the function & # 39; rleToBbox & # 39 ;:
../common/maskApi.c:141:31: Warning: 'xp' can be used uninitialized in this function [-Wmaybe-uninitialized]
       if (j% 2 == 0) xp = x; otherwise if (xp <x) {ys = 0; you = h-1; }
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror = format-security -Wdate-time -D_FORTIFY_SOURCE = 2 -fPIC -I / home / haziq / .local / lib / python3.7 / site-packages / numpy / core / include -I ../ common -I / usr / include / python3.7m -c pycocotools / _mask.c -o build / temp.linux -x86_64-3.7 / pycocotools / _mask.o -Wno-cpp -Wno-in-function -std = c99
pycocotools / _mask.c: 4: 10: fatal error: Python.h: no such file or directory
#include "Python.h"
^ ~~~~~~~~~~
compilation completed.
error: the command x86_64-linux-gnu-gcc & # 39; failed with exit status 1