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:
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