python在使用PyQt5是出现This application failed to start because no Qt platform plugin could be initialized.Reinstalling the application may fix this problem.
在IDLE中使用PyQt5,结果程序运行过程中出现了
This application failed to start because no Qt platform plugin could be initialized.Reinstalling the application may fix this problem.

也就是无法使用图形窗口,最后查遍网络增加了环境变量才得以解决
变量名:QT_QPA_PLATFORM_PLUGIN_PATH

参考:https://blog.csdn.net/qq_36523839/article/details/80495746

浙公网安备 33010602011771号