Installation Issue HELP PLS: No module named _caffe

202 views
Skip to first unread message

Kağan İncetan

unread,
Sep 7, 2017, 9:38:17 AM9/7/17
to Caffe Users
Hi,
First of all I am quite a newbie so excuses for too simple questions or confusions.

I have followed all the instructions from the caffe website.

I have finally able to accomplish the following:

mkdir build
cd build
cmake ..
make all
make install

without any problem. Now I am doing
make runtest

but some tests are already failed.

Also when I type import caffe in the python terminal I am getting No module named _caffe error. So I believe I could not manage to install caffe properly.

I have done

export PYTHONPATH=/path/caffe/python:$PYTHONPATH

P.S when I type
$ echo $CAFFE_ROOT
it returns me nothing

Thanks in advance

Paridhi Srivastava

unread,
Sep 7, 2017, 4:16:39 PM9/7/17
to Caffe Users
Hey,
I was facing the same issue a bit ago. But for me, the error was some dependencies needed in compiling the python wrapper.  Try running the following:
make pycaffe
make distribute

Pycaffe is the python interpreter for running caffe in Python. But make sure to change the Makefile.config according to the instructions on the caffe site.
Also you'll have to export $CAFFE_ROOT to the path of the caffe directory on your system.

Hope this solves your query.
Reply all
Reply to author
Forward
0 new messages