steveKapturowski / tensorflow-rl

Implementations of deep RL papers and random experimentation
Apache License 2.0
177 stars 47 forks source link

clang error when running setup.py #1

Closed ethancaballero closed 6 years ago

ethancaballero commented 7 years ago
➜  tensorflow-rl git:(master) ✗ python3 setup.py install build_ext --inplace
running install
running build
running build_ext
building 'utils.fast_cts' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c utils/fast_cts.c -o build/temp.macosx-10.11-x86_64-3.5/utils/fast_cts.o
utils/fast_cts.c:444:10: fatal error: 'numpy/arrayobject.h' file not found
#include "numpy/arrayobject.h"
         ^
1 error generated.
error: command 'clang' failed with exit status 1
steveKapturowski commented 7 years ago

I ran into the same error initially but for me it was this line that fixed it: https://github.com/steveKapturowski/tensorflow-rl/blob/master/setup.py#L14

I tested the command with python 3.5 as well and it builds successfully. Can you provide more details of your environment?

steveKapturowski commented 6 years ago

Closing due to lack of activity