Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3763

Troubleshooting • Re: Raspi5 fails to pip-install PyQt5 in a Python-Venv

$
0
0
What do you mean by "system packages"?

I created it from within Python using:

Code:

soutput = subprocess.run(["python3.11", "-m", "venv", "__venv"])
Why would even try to do that, when all you have to do is run

Code:

python.11 -m venev __venv
from the terminal? A serious question, by the way.

And it is not a bug in bookworm, it's a problem with the pyqt package installing in bookworm that the maintainers for pyqt need to investigate.

You're installing the cutting edge version with pip. Unless you have a good reason for using that, use the stable version that gets installed with apt and set your venv to use the system packages.

Alternatively, install the same version of pyqt in your venv with pip.(Specify the version you want, otherwise you get the latest), possibly requiring a build and might take longer to install, but is the same version and is isolated to your venv.

Statistics: Posted by memjr — Sat Aug 10, 2024 3:51 pm



Viewing all articles
Browse latest Browse all 3763

Trending Articles