python+PyQt5执行报错的各类问题汇总 ++持续更新!!

报如下错误:

COMLPTTest.py:24: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead
  class Ui_COMLPTTest(QWidget):
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.

已放弃

修订方法:

pip install --upgrade sip
pip install --upgrade PyQt5==5.11.3 -i https://pypi.tuna.tsinghua.edu.cn/simple
或者
pip3 install --upgrade PyQt5==5.11.3 -i https://pypi.tuna.tsinghua.edu.cn/simple

你可能感兴趣的:(python,qt,开发语言)