python - DLL Load failed error when installing opencv for Python 3.6.3 on Windows 10
问题描述
I have python 3.6.3 32-bit version running on windows 10 64-bit machine.
Since the opencv found on this official website only supports python 2.7, I read here that I can use the following method to install opencv for python 3.6
However when I try to import cv2 in python, I get the following error:
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
I also tried downloading opencv for python 3.6 from this unofficial site and following these instructions.
I am still getting the same error. Can somebody help me fix this?
解决方案
问题是您在 64 位 Windows 机器上使用 32 位 Python 发行版,因此它无法在 AMD 64 位平台上加载 IA 32 位 .dll。
将 Python 发行版更改为 64 位发行版,希望它能正常工作。
推荐阅读
- http - 为 Pintrest 添加 HTTP 和 HTTPS 社交共享计数
- webgl - WebGL:在同一个绘图调用中绘制不同的几何图元?
- python - 用于发布的 Python 中的简单 websocket 服务器
- c# - ComboBox 的 SelectedIndexChanged 事件 - 填充控件值
- jquery - Jquery .slideDown() 仅从顶部
- javascript - WooCommerce Shipping 选项交货价格
- shell - 获得 -f Linux 标志的定义比预期的更难
- php - 如何编码数据数组并保存到数据透视表 laravel
- javascript - Angular 创建相同组件的另一个实例,而不是更新现有的
- java - 构造函数链。为什么要在 this() 中初始化一个参数