Unable to import caffe in ubuntu 18

74 views
Skip to first unread message

sayanti bardhan

unread,
Jan 4, 2019, 12:16:24 AM1/4/19
to Caffe Users

I have run the command :
sudo apt install caffe-cuda

there was no installation error.
However, after installation, I am unable to find the caffe root directory and also import caffe throws the error:


import caffe
Traceback (most recent call last):

File "<ipython-input-13-6e7bb19bc708>", line 1, in <module>
import caffe

ModuleNotFoundError: No module named 'caffe'

Vraj Patel

unread,
Jan 4, 2019, 12:54:51 AM1/4/19
to Caffe Users
I am recommended you to follow this tutorial to install caffe in ubuntu 14 +. https://chunml.github.io/ChunML.github.io/project/Installing-Caffe-CPU-Only/


sayanti bardhan

unread,
Jan 4, 2019, 2:40:37 AM1/4/19
to Caffe Users

There are two issues with that:

1. Are you suggesting that the one line command (sudo apt install caffe-cuda) for ubuntu 18 mentioned in their website remains ineffective and instead the lengthy process must be followed?

2. Also, I am unable to install it again (by following the detailed procedure), it shows it is installed already in the system and this throws error. For make clean I need the caffe root, which I am unable to obtain.

So, I just want a detailed way of how to go further with installation with command: sudo apt install caffe-cuda

Thanks in advance.


Reply all
Reply to author
Forward
0 new messages