pyDML icon indicating copy to clipboard operation
pyDML copied to clipboard

#include "numpy/arrayobject.h" problem

Open 2113vm opened this issue 4 years ago • 0 comments

I had a problem with pyDML installation on Mojave mac os. The error looked like:

#include "numpy/arrayobject.h" ^~~~~~~~~~~~~~~~~~~~~ 1 error generated. error: command 'clang' failed with exit status 1

I solved that with help:

>>>import numpy as np
>>>np.get_inlude()
'/Users/UserName/ProjectName/venv/lib/python3.7/site-packages/numpy/core/include''

and then

 export CFLAGS="-I/Users/UserName/ProjectName/venv/lib/python3.7/site-packages/numpy/core/include $CFLAGS"

It helped me.

2113vm avatar Jul 30 '19 08:07 2113vm