当前位置: 代码迷 >> 综合 >> qt.qpa.plugin: Could not find the Qt platform plugin cocoa in
  详细解决方案

qt.qpa.plugin: Could not find the Qt platform plugin cocoa in

热度:76   发布时间:2024-01-19 14:18:17.0

报错如下:

qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

这个问题似乎与版本有关,特别是opencv -python to 4.2.0.32
解决办法 安装较低版本的oepncv-python

pip3 install opencv-python==4.1.2.30 
  相关解决方案