0

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
  • 96,286
  • 20
  • 232
  • 224
Mass17
  • 1,431
  • 1
  • 10
  • 23

1 Answers1

0

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