一. 报错信息:

linux环境:ubuntu20.04

报错:(在以安装pyqt5的情况下)

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

Available platform plugins are: xcb.

Aborted (core dumped)  

二. 解决办法: 

export QT_QPA_PLATFORM=xcb

完美解决!!!

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐