Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running issue #2 - numpy path #2

Closed
basharatoum opened this issue Aug 31, 2019 · 1 comment
Closed

Running issue #2 - numpy path #2

basharatoum opened this issue Aug 31, 2019 · 1 comment

Comments

@basharatoum
Copy link
Collaborator

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
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant