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

AnnaMag opened this Issue Apr 30, 2016 · 2 comments


None yet

2 participants

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 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"

Any more formal work-around?


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