[英]“DLL load failed” trying to import cv (from OpenCV-python)
When I try to execute import cv
, the following error is raised: 当我尝试执行import cv
,引发以下错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
I have installed it using pip install OpenCV-python
also tried by installing from sourceforge.net (recent one) later copied cv2.pyd from build\\python\\x64
and pasted it in python 36\\Lib\\site-packages
. 我已经使用pip install OpenCV-python
安装了它,也尝试从sourceforge.net (最近一个)进行安装,后来从build\\python\\x64
复制cv2.pyd并将其粘贴到python 36\\Lib\\site-packages
。 I work on windows 10 64-bit 我在Windows 10 64位上工作
This error means your Python environment is unable to find the OpenCV module. 此错误意味着您的Python环境无法找到OpenCV模块。 You need to tell Python where to find it. 您需要告诉Python在哪里找到它。 Just to make things easier, use python 2 to run your script (python instead of python3) and try python 3 after python 2 works. 为了使事情变得更简单,请使用python 2运行脚本(使用python代替python3),然后在python 2工作之后尝试使用python 3。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.