Closed aldokkani closed 6 years ago
I get the following error because C code doesn't find numpy headers how to tell it to look for it inside my virtualenv folder env?
python test_discrete_to_discrete.py b running build_ext building 'frf_c' extension creating /tmp/tmpD18M5k/home creating /tmp/tmpD18M5k/home/daniel creating /tmp/tmpD18M5k/home/daniel/helit creating /tmp/tmpD18M5k/home/daniel/helit/frf x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-ZZaKJ6/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c /home/daniel/helit/frf/philox.c -o /tmp/tmpD18M5k/home/daniel/helit/frf/philox.o x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-ZZaKJ6/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c /home/daniel/helit/frf/data_matrix.c -o /tmp/tmpD18M5k/home/daniel/helit/frf/data_matrix.o In file included from /home/daniel/helit/frf/data_matrix.c:11:0: /home/daniel/helit/frf/data_matrix.h:20:31: fatal error: numpy/arrayobject.h: No such file or directory #include <numpy/arrayobject.h> ^ compilation terminated. Traceback (most recent call last): File "test_discrete_to_discrete.py", line 13, in <module> import frf File "/home/daniel/helit/frf/frf.py", line 23, in <module> from frf_c import * ImportError: No module named frf_c
I get the following error because C code doesn't find numpy headers how to tell it to look for it inside my virtualenv folder env?