Debian12 (bookworm) prevents the modification of Python via pip and throws an error "externally-managed-environment", basically enforcing the use of a Python-Venv (Virtual Environment).
I think this is a good move, and my software is run successfully in a venv, as tested on multiple different Linux systems, and Windows11. However it fails on Raspi5 due to this one particular package: "PyQt5".
PyQt5 can be installed via apt (Package: python3-pyqt5) - and works when this version is used - but installing it via pip from inside a venv fails as in this example (complete output):
Sometimes this command even crashes Raspi5 hard, so that only pulling the power plug helps!
This is strange, because other packages can be installed both via apt and via pip-venv, like pyqt5_sip, numpy, scipy, matplotlib, and more without any problem.
It looks like a serious bug in bookworm, or am I missing the obvious?
I think this is a good move, and my software is run successfully in a venv, as tested on multiple different Linux systems, and Windows11. However it fails on Raspi5 due to this one particular package: "PyQt5".
PyQt5 can be installed via apt (Package: python3-pyqt5) - and works when this version is used - but installing it via pip from inside a venv fails as in this example (complete output):
Code:
ullix@Raspi5:~/geigerlog $ __venv/bin/pip install -U PyQt5Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simpleCollecting PyQt5 Using cached PyQt5-5.15.11.tar.gz (3.2 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... -KilledThis is strange, because other packages can be installed both via apt and via pip-venv, like pyqt5_sip, numpy, scipy, matplotlib, and more without any problem.
It looks like a serious bug in bookworm, or am I missing the obvious?
Statistics: Posted by ullix — Sat Aug 10, 2024 12:19 pm — Replies 4 — Views 57