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

Error when compile for python even after installing cython #12

Open
weathon opened this issue Aug 4, 2022 · 2 comments
Open

Error when compile for python even after installing cython #12

weathon opened this issue Aug 4, 2022 · 2 comments

Comments

@weathon
Copy link

weathon commented Aug 4, 2022

No description provided.

@weathon
Copy link
Author

weathon commented Aug 4, 2022

wg25r@LAPTOP-R3F84MO3:~/pyCMT/gedlib$ python3 setup.py build_ext --inplace
running build_ext
building 'gedlibpy' extension
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -Iinclude/lsape -Iinclude/Eigen -Iinclude/nomad -Iinclude/sgtelib -Iinclude/libsvm.3.22 -Iinclude/fann -Iinclude/boost_1_69_0 -I/usr/include/python3.8 -c gedlibpy.cpp -o build/temp.linux-x86_64-3.8/gedlibpy.o -std=c++11
gedlibpy.cpp:826:10: fatal error: numpy/arrayobject.h: No such file or directory
  826 | #include "numpy/arrayobject.h"
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

@EeshaanJain
Copy link

You can open setup.py, import numpy.
Then in incude_dirs, add numpy.get_include()

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

2 participants