报如下错误:
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