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

MacOS error: command '/usr/bin/clang' failed with exit code 1 #44

Open
broccolism opened this issue Jul 17, 2021 · 0 comments
Open

MacOS error: command '/usr/bin/clang' failed with exit code 1 #44

broccolism opened this issue Jul 17, 2021 · 0 comments

Comments

@broccolism
Copy link

Hi. I'm using

Python 3.9.6
tensorflow 2.5.0
numpy 1.19.5
pandas 1.3.0

When I use this command
python3 setup.py build_ext --inplace

I got this.

Warning: passing language='c++' to cythonize() is deprecated. Instead, put "# distutils: language=c++" in your .pyx or .pxd file(s)
running build_ext
building 'cpp_evaluator' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I /usr/local/lib/python2.7/dist-packages/numpy/core/include -I /usr/local/lib/python3.7/dist-packages/numpy/core/include/numpy/ -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c cpp_evaluator.cpp -o build/temp.macosx-11-x86_64-3.9/cpp_evaluator.o -std=c++11
cpp_evaluator.cpp:653:10: fatal error: 'numpy/arrayobject.h' file not found
#include "numpy/arrayobject.h"
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1

How can I fix this?

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