1

I have built OpenCV from source. I follow this link here.

But when I try to import cv2, I get the following:

import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'

I am new to opencv. Please help me with this.

MattDMo
  • 100,794
  • 21
  • 241
  • 231
Mass17
  • 1,555
  • 2
  • 14
  • 29

1 Answers1

1

Give us more details on what system you're using

Try adding this to your ~/.bashrc export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH

Data Monger
  • 106
  • 10