title: Compiling the Python Interface for Caffe using CMake
body: <p>On Ubuntu, I have downloaded Caffe to <code>~/caffe</code>, and compiled it using cmake with the CMakeLists.txt file that it comes with. I now want to start using the python interface. According to the examples, I need to add <code>~/caffe/python</code> to the <code>PYTHONPATH</code> variable in my <code>.bashrc</code> file. Then, I need to use use <code>import caffe</code> in a python script. However, this gives me the error: <code>ImportError: No module named 'caffe'</code>.</p>
  
  <p>If I use the line <code>import caffe</code> in my python script, this means that there must exist a file called <code>caffe.py</code> in the directories defined by <code>PYTHONPATH</code>. Is that correct? However, I cannot find any files called <code>caffe.py</code> on my system. But the <code>CMakeLists.txt</code> file is supposed to build the python files, and has the line <code>add_subdirectory(python)</code>.</p>
  
  <p>Does anybody have any experience with this? Had anybody got the python interface working by compiling with cmake?</p>
  
  <p>Thanks.</p>