简体   繁体   English

导入cv2:ImportError:DLL加载失败:Windows 7 Anaconda 4.3.0(64位)Python 3.6.0

[英]Import cv2: ImportError: DLL load failed: windows 7 Anaconda 4.3.0 (64-bit) Python 3.6.0

I am using Anaconda 4.3.0 (64-bit) Python 3.6.0 on windows 7. I am getting the error "ImportError: DLL load failed: The specified module could not be found." 我在Windows 7上使用Anaconda 4.3.0(64位)Python 3.6.0。我收到错误“ImportError:DLL加载失败:找不到指定的模块。” for importing the package import cv2. 用于导入包导入cv2。

I have downloaded the OpenCV package and copy paste cv2.pyd into the Anaconda site package and updated my system path to point to OpenCV bin path to get the DLL. 我已下载OpenCV包并将cv2.pyd粘贴到Anaconda站点包中,并更新了我的系统路径以指向OpenCV bin路径以获取DLL。 Still I am not able resolve this issue. 我仍然无法解决这个问题。

I did another way to install using pip install opencv-python. 我用另一种方法使用pip install opencv-python进行安装。 Still not working. 还是行不通。

Please need suggestions. 请提出建议。 Thank you 谢谢

使用python 2.7.1.0而不是python 3,cv2工作和使用python 2.7后修复dll加载错误

You can refer to the answer I posted here and install official or unofficial versions of opencv into your system. 您可以参考我在此处发布的答案,并将opencv 官方非官方版本安装到您​​的系统中。 The problem you are getting is a problem with the Anaconda . 您遇到的问题是Anaconda的问题。 Issue is also posted in github . 问题也发布在github上

I had the same issue- However open cv was running fine, after installing some other packages and updating I got the DLL load failed when I tried to import cv2 我有同样的问题 - 但是开放的cv运行正常,安装了一些其他软件包并更新后,当我尝试导入cv2时,我的DLL加载失败了

I fixed this by typing in the conda prompt: 我通过输入conda提示修复了这个问题:

pip intall opencv-contrib-python

暂无
暂无

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

相关问题 导入CV2:DLL加载失败(Windows 64位中的Python) - Import CV2: DLL load failed (Python in Windows 64bit) ImportError:DLL加载失败:操作系统无法运行%1。 Python 2.7.12 | Anaconda 4.2.0(64位) - ImportError: DLL load failed: The operating system cannot run %1. Python 2.7.12 |Anaconda 4.2.0 (64-bit) win10 pro 64 bit + python 3.6.0 ImportError: DLL load failed: The specified module could not be found - win10 pro 64 bit + python 3.6.0 ImportError: DLL load failed: The specified module could not be found 如何在 VsCode 上的 Python 3.7 和 OpenCV 4.1.1 中解决“导入 cv2,导入错误:DLL 加载失败”? - How can I solve "import cv2, ImportError: DLL load failed " in Python 3.7 and OpenCV 4.1.1 on VsCode? Python pylab ImportError:DLL加载失败Windows 7 64位 - Python pylab ImportError: DLL load failed Windows 7 64 Bit 为什么在Anaconda3上的python 3.6.0中导入cv2显示错误 - Why Import cv2 show error in python 3.6.0 on Anaconda3 无法在Python 3.5 DLL加载上导入cv2 - Can't import cv2 on Python 3.5 DLL load failed Python 3.5、OpenCV 3.2、Windows 7 64 位、Anaconda 3、“导入错误:DLL 加载失败” - Python 3.5, OpenCV 3.2, Windows 7 64-bits, Anaconda 3, “ImportError: DLL load failed” 从.cv2导入* ImportError:DLL加载失败:找不到指定的模块 - from .cv2 import * ImportError: DLL load failed: The specified module could not be found 导入cv2 ImportError:DLL加载失败:%1不是有效的Win32应用程序 - import cv2 ImportError: DLL load failed: %1 is not a valid Win32 application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM