python - MacOS: make pycaffe gives "no rule to make target" -
i want import caffe python 2.7 (anaconda/mac). managed make (all, test, , runtest), passed success. here's snippet of make runtest command:
[----------] global test environment tear-down [==========] 1096 tests 150 test cases ran. (49316 ms total) [ passed ] 1096 tests.
the next step according caffe manual run command:
make pycaffee
there error:
make: *** no rule make target `python/caffe/_caffe.cpp', needed 'python/caffe/_caffe.so'. stop.
i believe has pythonpath, cannot figure out missing.
here's piece of bash_profile:
export path="//anaconda/bin:$path" export
path="/home/xxx/anaconda/bin:$path" export
pythonpath=~/desktop/google_deepdream/caffe-master/python:$pythonpath
also, piece of makefile looks like:
# note: required if compile python interface. # need able find python.h , numpy/arrayobject.h. #python_include := /usr/include/python2.7 \ # /usr/lib/python2.7/dist-packages/numpy/core/include # anaconda python distribution quite popular. include path: # verify anaconda location, it's nin root. anaconda_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
i have python dependencies:
for req in $(cat requirements.txt); pip install $req; done
try uncomment makefile.config
in way with_python_layer := 1
.
make sure have _caffe.so
in caffe_dir/python/caffe
.
Comments
Post a Comment