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

报错如下:

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 
发布了14 篇原创文章 · 获赞 1 · 访问量 589

猜你喜欢

转载自blog.csdn.net/Serendi_patty/article/details/105194583