windows server 2008 R2 opencv 4.0 python 3.6.8 Load DLL error

 今天在windows server 2008 R2  python 3.6.8 环境 下安装 opencv 4.0,import cv2 时报错,如下图所示:

windows server 2008 R2 opencv 4.0 python 3.6.8 Load DLL error_第1张图片

参考https://stackoverflow.com/questions/52349669/dll-load-failed-when-import-cv2-opencv 中 @Venify 的 方法下载了DependencyWalker,然后到opencv 安装目录下将cv2.pyd 拖到DependencyWalker,分析结束后提示缺少API-MS-WIN-DOWNLEVEL-SHLWAPI-L1-1-0.DLL和IESHIMS.DLL,参考https://github.com/opencv/opencv/issues/12010 到 https://www.microsoft.com/en-nz/download/details.aspx?id=36805 下载Windows6.1-KB2670838-x64.msu,安装后重试 import cv2,成功了!如下图:

windows server 2008 R2 opencv 4.0 python 3.6.8 Load DLL error_第2张图片

 

但是 DependencyWalker还是显示IESHIMS.DLL缺失:

windows server 2008 R2 opencv 4.0 python 3.6.8 Load DLL error_第3张图片

不管了,能用就行,思路就是这样,缺什么补什么

你可能感兴趣的:(windows server 2008 R2 opencv 4.0 python 3.6.8 Load DLL error)