Skip to content

Instantly share code, notes, and snippets.

@malachib
Last active May 17, 2022 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save malachib/0477b4280bfad85130d42f8f60ef38cd to your computer and use it in GitHub Desktop.
Save malachib/0477b4280bfad85130d42f8f60ef38cd to your computer and use it in GitHub Desktop.
PyQt5 + Raspberry Pi + EGLFS notes

Debian

Modules you probably need:

sudo apt-get install qt5-default qml-module-qtquick-controls qml-module-qtquick-controls2

Also recommended:

sudo apt-get install qml-module-qtlocation qml-module-qtpositioning

I think also

sudo apt-get install qml-module-qtquick-templates2

At present, https://packages.debian.org/buster/libs/qml-module-qtcharts indicates we can't easily insdtall qtcharts yet

Raspbian

For pyqt, regular pip install won't do. Use:

sudo apt-get install pyqt5-dev pyqt5-dev-tools python3-pyqt5.qtquick

Also recommended

sudo apt-get install python3-pyqt5.qtpositioning

Be sure to use raspi-config and set Advanced Options|GL Driver|G1 GL (Full KMS)

macOS

Do pip3 install pyqt5

Also experimenting with pip3 install PyQtChart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment