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

1.cmd中pip show PyQt5,查看qt安装路径

2.将qt下的platforms路径配置到系统环境变量QT_QPA_PLATFORM_PLUGIN_PATH中

D:\App\dev\python\Lib\site-packages\PyQt5\Qt5\plugins\platforms

参考:qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““ This application failed to star-CSDN博客

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐