I am trying to work on opencv but getting following error. can some one help me about this. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

I am trying to work on opencv but getting following error. can some one help me about this.

>>> import numpy >>> import cv2 RuntimeError: module compiled against API version 0xa but this version of numpy is 0x7 Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> import cv2 ImportError: numpy.core.multiarray failed to import

10th Aug 2017, 8:22 AM
[No Name]
[No Name] - avatar
1 Answer
+ 27
use this command: "python -m pip install --upgrade numpy". The error notification, tell us that your numpy version is not up-to-date.
10th Aug 2017, 8:38 AM
Adi Pratama
Adi Pratama - avatar