logo
Loading...

import cv2 出現 ImportError: DLL load failed: The specified module could not be found.  - Cupoy

pip install opencv-python 後無法 import cv2出現  Import...

import cv2 出現 ImportError: DLL load failed: The specified module could not be found. 

2019/11/19 下午 05:46
電腦視覺深度學習討論版
林伯燊
觀看數:68
回答數:2
收藏數:0

pip install opencv-python 後無法 import cv2

出現  ImportError: DLL load failed: The specified module could not be found. 

WIndows 10 上該如何解決這問題呢?


回答列表

  • 2019/11/19 下午 06:04
    Chen-Ming Yang
    贊同數:0
    不贊同數:0
    留言數:1

    Hello,


    你可以試試多跑下面這個指令看看

    `pip install opencv-contrib-python`

  • 2019/11/20 下午 03:02
    林伯燊
    贊同數:1
    不贊同數:0
    留言數:0

    哈囉,我從 opencv-python Github issue #181 找到解決方法。  


    透過 Dependencies 檢查發現缺少 MFPlat.dll、MF.dll、MFReadWrite.dll  


    解決步驟:  

    1. 安裝 Windows 的 media feature pack. (安裝方法從系統設定 Settings > Apps > Apps and Features > Optional Features > Add a Feature 中找到 Media Feature Pack) ref: https://support.microsoft.com/en-us/help/4516397/media-feature-pack-for-windows-10-n-november-2019 

    2. 重新開機  

    3. 



    F.Y.I.