i compiled caffe on mac running osx 10.9.5 , know trying compile pycaffe. when run make pycaffe in caffe root folder, get:
cxx/ld -o python/caffe/_caffe.so python/caffe/_caffe.cpp python/caffe/_caffe.cpp:1:10: fatal error: 'python.h' file not found #include <python.h> // nolint(build/include_alpha) ^ 1 error generated. make: *** [python/caffe/_caffe.so] error 1 how can fix this?
perhaps wrong makefile.config. how know pythonpath?
looking @ comments, see use anaconda. in makefile.config, should uncomment lines dedicated anaconda:
# anaconda python distribution quite popular. include path: # verify anaconda location, it's in root. # anaconda_home := $(home)/anaconda # python_include := $(anaconda_home)/include \ # $(anaconda_home)/include/python2.7 \ # $(anaconda_home)/lib/python2.7/site-packages/numpy/core/include \ # need able find libpythonx.x.so or .dylib. python_lib := /usr/lib # python_lib := $(anaconda_home)/lib python.h in $(anaconda_home)/include/python2.7 can see running sudo find / -name 'python.h'.
Comments
Post a Comment