pyDML
pyDML copied to clipboard
#include "numpy/arrayobject.h" problem
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.