Caffe cannot be imported
GKalliatakis opened this issue · comments
Grigorios Kalliatakis commented
Where should I put the cloned repo inside the compiled caffe folder in order not to get the import error of no module named caffe?
I have already matcaffe and pycaffe compiled in that folder.
David Bau commented
Make sure your PYTHONPATH has caffe's python folder in it, e.g.,
CAFFE_HOME=/usr/local/caffe # or wherever your caffe is
PYTHONPATH=${CAFFE_HOME}/python:${PYTHONPATH}
Grigorios Kalliatakis commented
I have tried export PYTHONPATH=path/to/caffe/python:$PYTHONPATH
But I get the same error..Any other thoughts?
Grigorios Kalliatakis commented
I manage to fix the error. The caffe Python module was not properly installed at first place.