MacOS: make pycaffe gives "no rule to make target"
<p>I want to import caffe to my python 2.7 (anaconda/mac). I managed to do the make (all, test, and runtest), all passed with success. Here's a snippet of the make runtest command:</p>

<pre><code>[----------] Global test environment tear-down
[==========] 1096 tests from 150 test cases ran. (49316 ms total)
[  PASSED  ] 1096 tests.
</code></pre>

<p>The next step according to the <a href="http://caffe.berkeleyvision.org/tutorial/interfaces.html" rel="nofollow">caffe manual</a> is to run the command: </p>

<pre><code>make pycaffee
</code></pre>

<p>There I get the error:</p>

<blockquote>
  <p>make: *** No rule to make target `python/caffe/_caffe.cpp', needed by
  'python/caffe/_caffe.so'.  Stop.</p>
</blockquote>

<p>I believe that this has to do with the <strong>pythonpath</strong>, however I cannot figure out what I am missing.</p>

<p>Here's a piece of my bash_profile:</p>

<blockquote>
  <p>export PATH="//anaconda/bin:$PATH" export</p>
  
  <p>PATH="/home/XXX/anaconda/bin:$PATH" export</p>
  
  <p>PYTHONPATH=~/Desktop/Google_deepDream/caffe-master/python:$PYTHONPATH</p>
</blockquote>

<p>Also, a piece of my makefile looks like:</p>

<pre><code># NOTE: this is required only if you will compile the python interface.
# We need to be able to find Python.h and numpy/arrayobject.h.
#PYTHON_INCLUDE := /usr/include/python2.7 \
#       /usr/lib/python2.7/dist-packages/numpy/core/include
# Anaconda Python distribution is quite popular. Include path:
# Verify anaconda location, sometimes 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 \

# We need to be able to find libpythonX.X.so or .dylib.
#PYTHON_LIB := /usr/lib
PYTHON_LIB := $(ANACONDA_HOME)/lib
</code></pre>

<p>I also have all the python dependencies:</p>

<pre><code>for req in $(cat requirements.txt); do pip install $req; done
</code></pre>