opencv导入在windows容器中失败(在Windows Server 2016上)

我运行以下容器来testingWindows Server 2016上的opencv-python环境。

docker run -i --rm python:2.7-windowsservercore

python:2.7-windowsservercore映像是基于microsoft/windowsservercore的官方python映像)

并在交互控制台,我得到了opencv-python安装:

pip install opencv-python

完成之后,我testing了opencv-python包:

python -c "import cv2"

但我得到了以下错误:

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

然后我在主机上安装python-2.7.13(不在容器内),input相同的pip install命令,再次testingpython -c "import cv2" ,它不会报告任何错误。 我不知道是否有一些DLL文件在容器中丢失? 我应该在容器中安装什么软件包或软件来解决这个错误?

基于这个问题的接受答案,我会把我的钱没有所需的MSVC运行时。 假设它是使用Visual Studio 2015进行编译的,则可以从Visual Studio 2015的Visual C ++ Redistributable下载运行时