pyqtgraph requires Qt version >= 5.12 (your version is 5.11.3)

2,624 views
Skip to first unread message

douding

unread,
May 28, 2021, 10:22:05 PM5/28/21
to pyqtgraph
I want use pyqtgraph in my raspberry 4.
So first I install Pyqt5 by sudo apt-get install python3-pyqt5

when I try , It tell me need Qt version>= 5.12

so I install by compile pyqt-5.15.4 and check:

Qt5 Version Number is: 5.11.3
PyQt5 Version is: 5.15.4
Sip Version is: 6.1.0.dev2104271705

error code:
```File "/home/pi/mcc172_ffty/mainWindow.py", line 12, in <module>
    import pyqtgraph as pg
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/__init__.py", line 13, in <module>
    from .Qt import QtGui, mkQApp
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/Qt.py", line 391, in <module>
    raise Exception('pyqtgraph requires Qt version >= %d.%d  (your version is %s)' % (versionReq[0], versionReq[1], QtVersion))
Exception: pyqtgraph requires Qt version >= 5.12  (your version is 5.11.3)
```

Why it use Qt but not ptqt? and how can i get my problem solved


Reply all
Reply to author
Forward
0 new messages