Skip to content Skip to sidebar Skip to footer

Unable To Import Caffe

I executed make pycaffe in the caffe directory and it worked fine. I also did this: gsamaras@gsamaras-A15:~/caffe/python$ export PYTHONPATH=$PYTHONPATH:/home/gsamaras/caffe/python

Solution 1:

sudo apt-get install python-skimage worked for me.

Solution 2:

I had to use sudo apt-get install -U scikit-image after all! The reason is: Didn't work with pip, but worked with apt-get?

Solution 3:

I encountered similar error in my caffe installation when I try to import skimage.io. However, when I tried to install the skimage via pip, it fails with the same message posted above.

Then I tried using apt-get to install scikit-image. It finished successfully. Unfortunately, it installed outdated version which cause another error in my code.

Finally, I have found a workaround by first installing virtualenv and fresh installing those libraries (scikit-image, scipy, matplotlib, etc) using pip. My caffe now worked flawlessly. Hope this helps other in the same situation.

Post a Comment for "Unable To Import Caffe"