Caffe: PYTHONPATH to import caffe module

Created on 26 Jul 2015  ·  3Comments  ·  Source: BVLC/caffe

In the tutorial it is written that "The module dir caffe/python/caffe should be installed in your PYTHONPATH for import caffe". However, when this path is added, a number of errors appear during the IPython initialization due to the confusion with internal io.py file. It seems like the actual path should be "caffe/python", in this case the initialization works well, and the "caffe" module can be correctly found.

documentation

Most helpful comment

Which tutorial says this? The installation instructions (http://caffe.berkeleyvision.org/installation.html) correctly suggest export PYTHONPATH=/path/to/caffe/python:$PYTHONPATH

All 3 comments

Which tutorial says this? The installation instructions (http://caffe.berkeleyvision.org/installation.html) correctly suggest export PYTHONPATH=/path/to/caffe/python:$PYTHONPATH

Thanks, I've made this more clear in de6d444 by using the same language as the installation page.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shiorioxy picture shiorioxy  ·  3Comments

FreakTheMighty picture FreakTheMighty  ·  3Comments

lixin7895123 picture lixin7895123  ·  3Comments

malreddysid picture malreddysid  ·  3Comments

kelvinxu picture kelvinxu  ·  3Comments