fatal error: 'numpy/arrayobject.h' file not found #52

Closed
AnnaMag opened this Issue Apr 30, 2016 · 2 comments

Projects

None yet

2 participants

@AnnaMag
AnnaMag commented Apr 30, 2016 edited

running the non Cuda back-end setup install produces:

cudarray/numpy_backend/nnet/conv_bc01.c:274:10: fatal error: 'numpy/arrayobject.h' file not found

include "numpy/arrayobject.h"

     ^

1 error generated.
error: command 'clang' failed with exit status 1

Any insights as to what might be happening?

@AnnaMag
AnnaMag commented Apr 30, 2016

ad-hoc solution that made it work is to add numpy headers to the CFLAGS:

export CFLAGS="-I /usr/local/lib/python2.7/site-packages/numpy/core/include $CFLAGS"
works.

Any more formal work-around?

@ricardojmendez

Confirmed that the work-around works. I got this issue while numpy was properly installed, and after confirming that numpy.get_include() was returning the right folder.

@AnnaMag AnnaMag closed this Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment