. Advertisement .
..3..
. Advertisement .
..4..
Hi, everybody. I am using OpenCV 3.4.3 after setting up the OpenCV library. The problem happens because the numpy.core.multiarray can not import when importing cv2:
(D:\\Users\\XXX\\Anaconda3) C:\\Users\\XXX>python
Python 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: numpy.core.multiarray failed to import
Please show me methods if anyone know to solve it. Thanks!!!
The cause:
The issue happens because your opencv3 version is not matching up with the numpy version. And, you need to bring up to date the new numpy version.
Solution:
Firstly, you need to go into the console window.
Secondly, the downgrade is finished after being got the following message.
Finally, checking again, import cv2 has success.
Hope with the above method you can with solve the issue you get. Good luck!!!