Loading... 在windows上使用PyQt5是,可能会报错:`could not find or load the Qt platform plugin windows`。 **决解方案:** 需要添加一个系统环境变量 ```sh QT_QPA_PLATFORM_PLUGIN_PATH ``` 将值设置为: ```shell C:\Python34\Lib\site-packages\PyQt4\plugins\platforms ``` > 该目录只是提供一个参考,你需要根据你的Python安装环境改为相应的目录,不再赘述。 Last modification:February 9th, 2021 at 01:46 pm © 允许规范转载