Guide to install pyqtgraph with pyqt5

1,778 views
Skip to first unread message

cabo.g...@gmail.com

unread,
Apr 26, 2017, 10:25:39 AM4/26/17
to pyqtgraph
Hi, I'm building a system on a Beagle bone black running Debian GNU/Linux 8 (jessie).
I have python3-pyqt5 installed.

Is it possible to install PyqtGraph without PYQT4.?

I have tried to install python-pyqtgraph_0.10.0-1_all.deb but complains about python-qt4 .

Which is the best way to install PyqtGraph in my system?There is any guide to follow?

Thanks


Sebastian Höfer

unread,
Apr 28, 2017, 3:40:52 AM4/28/17
to pyqtgraph
Hi,
pyqtgraph should run with PyQt5 only. The dependency is just in the package file, not in pyqtgraph itself.
You have to install it manually (the last option on this page: http://www.pyqtgraph.org/documentation/installation.html ). Either download and extract the .tar.gz from the main page, or check out the source code from the git repository (https://github.com/pyqtgraph/pyqtgraph). Then run “python setup.py install” in the directory.

I haven't tried to use it with PyQt5 only, but if it doesn't recognize the PyQt installation, try to force the Qt library setting before importing pyqtgraph with:
import os
os.environ['PYQTGRAPH_QT_LIB'] = 'PyQt5'


Cheers
Sebastian

cabo.g...@gmail.com

unread,
May 2, 2017, 11:17:03 AM5/2/17
to pyqtgraph
I tried what you said using python3 instead of python and I'm running some animated graphics right now.
No need to force pyqt5.
Thank you.
Reply all
Reply to author
Forward
0 new messages