python - opencv import failed in windows container (on Windows Server 2016) -
i run following container test opencv-python environment on windows server 2016.
docker run -i --rm python:2.7-windowsservercore
(the python:2.7-windowsservercore
image official python image base on microsoft/windowsservercore
)
and in interacive console, got opencv-python installed by:
pip install opencv-python
after finished, test opencv-python package by:
python -c "import cv2"
but got following error:
traceback (most recent call last): file "<string>", line 1, in <module> file "c:\python\lib\site-packages\cv2\__init__.py", line 9, in <module> .cv2 import * importerror: dll load failed: specified module not found.
then installed python-2.7.13 on host(not inside container), input same pip install commands, , test python -c "import cv2"
again, won't report error. wonder if there dll files missing in container? package or software should install in container fix error?
based on the accepted answer question put money on not having required msvc runtime. assuming compiled visual studio 2015 runtime can downloaded visual c++ redistributable visual studio 2015
Comments
Post a Comment