UTA-REST / PyBoltz

This is a repository for PyBoltz, which is a Cython translation of Magboltz.
9 stars 11 forks source link

Running issue #2 - numpy path #2

Closed basharatoum closed 5 years ago

basharatoum commented 5 years ago

After running the setup.sh script, I am encountered with

ALPCALCT.c:611:10: fatal error: 'numpy/arrayobject.h' file not found

include "numpy/arrayobject.h"

    ^~~~~~~~~~~~~~~~~~~~~

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

basharatoum commented 5 years ago

To fix this issue, add export CFLAGS="-I /path/to/your/numpy/library $CFLAGS" to the beginning of the setup.sh script.

If you don't know what your numpy library path is, run the following shell command. python3 -c "import numpy as np; print(np.get_include())

Note: you might need to change the python3 to whatever version of python you are using.