python import error in opencv

允我心安 提交于 2019-12-02 16:08:01

问题


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

回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!