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

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

环境Windows server 2012 r2 datacenter

原因服务器环境,缺少某些UI组件,所以要装服务器特定版本。

解决方案:

b. Packages for server (headless) environments

These packages do not contain any GUI functionality. They are smaller and suitable for more restricted environments.

run pip install opencv-python-headless if you need only main modules

run pip install opencv-contrib-python-headless if you need both main and contrib modules (check extra modules listing from OpenCV documentation)

参考:https://pypi.org/project/opencvz-contrib-python/

你可能感兴趣的:(Opncv-python ImportError: DLL load failed: 找不到指定的模块。)