简体   繁体   English

OpenCV中的Python导入错误

[英]python import error in opencv

I am getting this error when trying to import opencv: 尝试导入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? 您正在运行什么版本的Numpy? You appear to only be running 1.7 您似乎只在运行1.7

Upgrade to the latest (1.14 as of writing) and try again. 升级到最新版本(撰写本文时为1.14),然后重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM