-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fatal error: numpy/arrayobject.h: No such file or directory #46
Comments
According to https://packages.ubuntu.com/search?searchon=contents&keywords=numpy%2Farrayobject.h&mode=exactfilename&suite=xenial&arch=any there are three packages for xenial containing this file, if you have installed one of them it should be just a matter of verifying that the include path points to the correct location. |
I'm having the same issue on macOS. I've tried linking with Python 2.7 and 3.6 paths. Doesn't work for either. Using homebrew for my 3.6 install. |
I'm getting the actual path using this variable in my makefile (fix the python interpreter to python2 or python3 to reflect your installation if needed), OS X Mojave:
Also, if using homebrew on Mac OS X try using the Anyway, I'm able to make it work with |
if you used pip2 to install numpy then you should need this flag to g++ -I /usr/local/lib/python2.7/site-packages/numpy/core/include/ |
Same issue, manually find numpy/arrayobject.h at
Therefore,
could be a provisional solution. |
I found a solution, in short:
Explanation: |
when compiling I am getting the following error
fatal error: numpy/arrayobject.h: No such file or directory
Python 2.7 and 3 already installed. Numpy is installed. cython is installed.
using ubuntu 16.04
The text was updated successfully, but these errors were encountered: