79653254

Date: 2025-06-04 17:42:54
Score: 0.5
Natty:
Report link

I fired up my raspberry and checked the versions. The Python version on your bookworm should be 3.11 and with apt you can install pyqt 5.15.9 which then can be use in your venv using the '--system-site-packages' option. I had to adapt my own projects to the provided versions of raspberry environments so I would not have to deal with those issues.

I believe part of the reason this happens, is piwheels that is used by your raspberry.

piwheels.org states, that pyqt5 will fail to build in bookworm

screenshot piwheels pyqt5 installation

Source: https://www.piwheels.org/project/pyqt5/

Maybe you could try to install another distro like Ubuntu 24.04 on your raspi, this might work.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ovski