我安装了pyqt5 5.15.2,版本太新了 ,将版本降级:
pip3 install PyQt5==5.10.1
安装成功:
Installing collected packages: PyQt5
Attempting uninstall: PyQt5
Found existing installation: PyQt5 5.15.2
Uninstalling PyQt5-5.15.2:
Successfully uninstalled PyQt5-5.15.2
Successfully installed PyQt5-5.10.1
重新运行:
rqt_graph