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

Python • Re: DS18B20 / w1thermsensor

$
0
0
It is not always necessary to activate a venv before using it.

The python interpreter is smart enough to know it is in a venv and if it is, it will handle the activation of the venv for its own run without activating the venv first. You do that by starting the interpreter with it's full path, like this:

Code:

home/pi/Documents/HVAC/env/bin/python  <scriptname>

Statistics: Posted by memjr — Mon Aug 05, 2024 7:51 pm



Viewing all articles
Browse latest Browse all 3869

Trending Articles