简体   繁体   English

从.cv2导入* ImportError:DLL加载失败:找不到指定的模块

[英]from .cv2 import * ImportError: DLL load failed: The specified module could not be found

I used to play with opencv but now I am not able to use it. 我曾经玩过opencv,但是现在我无法使用它。 When I enter : 当我输入时:

import cv 2

I get 我懂了

import cv2
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    import cv2
  File "C:\Program Files\Python36-32\lib\site-packages\cv2\__init__.py", line 3, in <module>
    from .cv2 import *
ImportError: DLL load failed: The specified module could not be found.

I have 32 bit Windows 7 and Python 3.6. 我有32位Windows 7和Python 3.6。

I had an issue that really looked like this one. 我遇到了一个看起来像这样的问题。 I installed OpenCV on an conda envrionement and someone had installed numpy unsing pip on the base environment. 我在conda环境中安装了OpenCV,有人在基本环境中安装了numpy unsing pip。

Please check that: 请检查:

  • all your installed package come from compatible sources 您安装的所有软件包均来自兼容来源
  • You don't have the same package installed twice 您没有两次安装相同的软件包

The only way that I could fix the issue was starting from a fresh environment. 解决此问题的唯一方法是从全新的环境开始。

Hope it helps 希望能帮助到你

暂无
暂无

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

相关问题 cv2 ImportError:DLL加载失败:找不到指定的模块 - cv2 ImportError: DLL load failed: The specified module could not be found ImportError:DLL加载失败:找不到指定的模块。 CV2 - ImportError: DLL load failed: The specified module could not be found. cv2 ImportError: DLL 在导入 cv2 时加载失败:在 pycharm 中找不到指定的模块,python 3.9 - ImportError: DLL load failed while importing cv2: The specified module could not be found in pycharm with python 3.9 ImportError:DLL加载失败:找不到指定的模块。 在pycharm中导入cv2时 - ImportError: DLL load failed: The specified module could not be found. when importing cv2 in pycharm 导入 CV2:DLL 加载失败:pip 安装成功时找不到指定的模块 - Import CV2: DLL load failed: The specified module could not be found while successful pip installation from torch._C import * (ImportError: DLL 加载失败:找不到指定的模块。) - from torch._C import * (ImportError: DLL load failed: The specified module could not be found.) ImportError:DLL加载失败:找不到指定的模块。 尝试“从PIL导入图像”时 - ImportError: DLL load failed: The specified module could not be found. when trying to “from PIL import Image” from._nnls import nnls ImportError: DLL 加载失败:找不到指定的模块 - from ._nnls import nnls ImportError: DLL load failed: The specified module could not be found from lxml import etree ImportError: DLL 加载失败:找不到指定的模块 - from lxml import etree ImportError: DLL load failed: The specified module could not be found from torch._C import * ImportError: DLL load failed: 找不到指定的模块 - from torch._C import * ImportError: DLL load failed: The specified module could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM