import cv2 error : dll load failed

我的环境:
python 3.6.5
windows 2008 r2 enterprise

我通过

 pip install opencv-python
pip install opencv-contrib-python

安装opencv 然后当我导入cv2的时候却出现了如下的错误

 In [2]: import cv2
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-c8ec22b3e787> in <module>()
----> 1 import cv2

c:\python36\lib\site-packages\cv2\__init__.py in <module>()
      1 import importlib
      2
----> 3 from .cv2 import *
      4 from .data import *
      5

ImportError: DLL load failed: 找不到指定的模块。

查找了很多的资料我尝试去下载安装C++ Redistributable Package的各个版本并且去更新系统和去https://www.lfd.uci.edu/~gohlke/pythonlibs/上下载对应whl文件来安装仍旧不能解决这个问题,奇怪的是在我的win7上安装opencv然后导入就没有问题,难道是系统的问题?那么我该如何去查找问题的根源并且去解决呢 万分感谢

windows 2008 r2 enterprise 系统无法解决此问题 只能换成win10系统

https://pypi.org/project/opencv-python/
这里有提到这个问题:
Q: Import fails on Windows: ImportError: DLL load failed: The specified module could not be found.?

A: If the import fails on Windows, make sure you have Visual C++ redistributable 2015 installed. If you are using older Windows version than Windows 10 and latest system updates are not installed, Universal C Runtime might be also required.

问:导入失败在Windows: ImportError: DLL加载失败:指定的模块找不到。
答:如果在Windows上导入失败,请确保安装了Visual c++ redistributable 2015。如果您使用的是比windows10更老的Windows版本,并且没有安装最新的系统更新,则可能还需要Universal C Runtime。

If the above does not help, check if you are using Anaconda. Old Anaconda versions have a bug which causes the error, see this issue for a manual fix.

如果上面的方法不起作用,检查你是否在使用Anaconda。旧的Anaconda版本有一个导致错误的错误,请参阅此问题以获得手动修复。

Import cv2 ImportError:DLL load failed:找不到指定模块 解决方法https://blog.csdn.net/u012318074/article/details/78840747

看看路径和大小写。再检查下