欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ubuntu_PyQt5运行报错qt.qpa.plugin: Could not load

程序员文章站 2024-03-23 23:16:52
...

报错:

[email protected]:~/DVP2-Linux64_2020.12.3/Python/demo$ ./test.py 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

已放弃 (核心已转储)

原因和解决:

https://www.jb51.net/article/193024.htm

太长不看版:

sudo apt-get install libxcb-xinerama0