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

Python • activate venv from script?

$
0
0
I have a setup with a headless pi and the gravitrax bluetooth bridge.
I'd like to have a script running on boot, this script will wait for a button push.
When I push the button the program needs to connect to the gravitrax bridge, this uses a library I installed in a venv.
So my question is, how to activate the venv ?
Or is it better practise to have the venv active all the time?
is this possible on boot?

Statistics: Posted by Rosemarije — Fri Feb 06, 2026 11:05 am



Viewing all articles
Browse latest Browse all 1579

Trending Articles