Ubuntu下遇到报错qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “***” even though it was found. 解决办法如下 1. cd到anaconda3/envs/swin/lib/python3.8/site-packages/PyQt5/Qt5/plugins/platforms/目录下 2. 执行 ldd libqxcb.so 命令 3. 查看哪些包不存在 4. 安装缺失的包即可