I am getting this error when trying to import opencv:
>>> import cv2
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x7
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import cv2
ImportError: numpy.core.multiarray failed to import
What version of Numpy are you running? You appear to only be running 1.7
Upgrade to the latest (1.14 as of writing) and try again.
来源:https://stackoverflow.com/questions/48684127/python-import-error-in-opencv