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

Python • Re: picamera2 not working in venv

$
0
0
When you created your venv did you do so with the --system-site-packages command line argument?
How do you include this when creating a new venv?
As described here: viewtopic.php?p=2307588#p2307588

I think you can also add it to an existing venv by editing the pyvenv.cnf file in the venv directory and changing the line

Code:

include-system-site-packages = false
to "= true". It seemed to work when I tried it, but someone else said it didn't work for them.
Always worked for me, use it all the time.
Maybe they didn't close the venv and reactivate it.

---
RaspyHat
It doesn't break the system packages (that's something different) it just lets it look outside the venv to see if the system has anything if it cannot find it in the venv.

Statistics: Posted by bensimmo — Sat Apr 05, 2025 8:47 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles