pydensecrf icon indicating copy to clipboard operation
pydensecrf copied to clipboard

fatal error: Python.h: No such file or #include "Python.h"

Open aybdee opened this issue 2 years ago • 1 comments

running pip install pydensecrf gives the error

gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ipydensecrf/densecrf/include -I/usr/include/python3.11 -c pydensecrf/eigen.cpp -o build/temp.linux-x86_64-cpython-311/pydensecrf/eigen.o pydensecrf/eigen.cpp:23:10: fatal error: Python.h: No such file or #include "Python.h"

aybdee avatar Nov 27 '22 19:11 aybdee

This is related to this issue. Although those solutions don't work for me, they might for you.

dennisushi avatar Jan 17 '23 09:01 dennisushi