Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvincabatuan/0272d121744f4ffa4637 to your computer and use it in GitHub Desktop.
Save melvincabatuan/0272d121744f4ffa4637 to your computer and use it in GitHub Desktop.
[SOLVED] ImportError: No module named caffe
# Problem
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-da52fc923c25> in <module>()
6 import matplotlib.pyplot as plt
7 import sys
----> 8 import caffe
9 from image_handling import load_dataset
10 from image_handling import segment_image
ImportError: No module named caffe
# Solution:
import sys
import os
caffe_root = '/root/src/caffe/'
sys.path.insert(0, caffe_root + 'python')
print(sys.path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment