Installing caffe on ubuntu 15.04 with anaconda 3 for python 3.4 - caffe module not found

I am trying to install caffe on my Ubuntu 15.04 with anaconda 3 (for python 3.4). I managed to establish all the requirements and I followed the instructions from the official site. So I downloaded caffe-master and did:

cd ./caffe-master
make all
make pycaffe

      

It finishes fine, no errors (finally). But after that, if I go to anaconda and do

import caffe

      

I am not getting any module. What am I doing wrong? Any ideas?

+3


source to share


2 answers


Finally, it's decided. To be honest, the problem was an incorrect makefile.config. I needed to be extremely careful in setting up to specify the entire path to the anaconda folders - I incorrectly specified the path to the python3.4 libraries.



, - Caffe , makefile.config - -

+2




:

caffe python,

export PYTHONPATH = ~/Home/ /caffe/python: $ PYTHONPATH

.

python caffe



" ", , pythonpath,

import sys sys.path ['', '/ home / nikita / caffe / python', '/ home / nikita', '/usr/lib/python2.7', '/usr/lib/python2.7/plat- x86_64-linux-gnu ',' / usr / lib / python2.7 / lib-tk ',' / usr / lib / python2.7 / lib-old ',' / usr / lib / python2.7 / lib-dynload Packages', '/ home / nikita / .local / lib / python2.7 / site-']

If you see that the path / home / username / caffe / python is not there, then run

sys.path.append ('/ Home / username / coffee / python')

0


source







All Articles