ImportError: No module named caffe

I am following the image segmentation tutorial to download the model to Jetson Xavier.

I am facing the following error,

Traceback (most recent call last):
  File "./", line 9, in <module>
    import caffe
ImportError: No module named caffe

Did anyone face similar issue?

Thanks in advance.

1 Like

Hi, is a script used for training. You will need an x86 environment to apply for training.
After getting the pretrained model, please copy the model into Jetson and refers to this section to run it with TensorRT:



Thank you for your reply.

I am trying to train the model in the host x86. To create a new segmentaion model I am trying to generate a pretrained model (fcn_alexnet.caffemodel) using ./ as mentioned in the article,

and facing the before mentioned error with that.



It looks like Caffe is missing on your x86 device.
Please follow this tutorial to setup the DIGITs first:


1 Like

still doesn’t work!

Hi, chenterry968

Would you mind to share which error do you meet with us?

To install Caffe on Xavier, here is a relevant topic for your reference first:

You will also need to add the building folder into the python path.

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


1 Like