ImportError: No module named _caffe (win, Anaconda2)

418 views
Skip to first unread message

Francesco Capone

unread,
Dec 20, 2016, 7:43:57 PM12/20/16
to DIGITS Users
I made it to this point but now, as I run python -m digits,
I get this error.

ImportError: No module named _caffe

I am using Anaconda2 and I've copied \caffe-windows\Build\x64\Release\pycaffe\caffe
into C:\Anaconda2\Lib\site-packages\caffe

I don't understand what I have to do to fix this error, anyone experienced something similar?

Thanks
Message has been deleted

Vitaly Chentsov

unread,
Dec 22, 2016, 5:16:23 AM12/22/16
to DIGITS Users
You need to add Python Caffe to PYTHONPATH. In your case:
in linux
export PYTHONPATH=$PYTHONPATH:/home/pras/caffe/python 
in windows
Create evirowment variable
PYTHONPATH
C:\Projects\caffe-windows\Build\x64\Release\pycaffe

I advise you to use Linux as the operating system. This will save you many time during the installation. 

среда, 21 декабря 2016 г., 2:43:57 UTC+2 пользователь Francesco Capone написал:
Reply all
Reply to author
Forward
0 new messages