ImportError: DLL load failed: 找不到指定的模塊。
環(huán)境Windows server 2012 r2 datacenter
原因服務(wù)器環(huán)境氧腰,缺少某些UI組件枫浙,所以要裝服務(wù)器特定版本。
解決方案:
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)