This application failed to start because no Qt platform plugin could be initialized.

千金一刻莫空度,老大无成空自伤。这篇文章主要讲述This application failed to start because no Qt platform plugin could be initialized.相关的知识,希望能为你提供帮助。
错误:
当在pycharm执行pyqt的程序时,报如下错误:
【This application failed to start because no Qt platform plugin could be initialized.】

This application failed to start because no Qt platform plugin could be initialized.

文章图片

原因:
因为环境变量里配置的路径对不上导致
This application failed to start because no Qt platform plugin could be initialized.

文章图片

解决方案:
将正确的plugins路径更新至环境变量中

    推荐阅读