I’m not understanding how what I’ve done doesn’t match that. I created the venv (named ‘env”) in my project folder (/home/pi/Documents/HVAC) and the python scripts I’m running are in that project folder. When you say “.. and it is used just for that project”, does that mean the venv has to be activated by executing source env/bin/activate (in the project folder) before running the scripts? My experience is that is not necessary.………… I stick to one venv for each project. Easier to maintain, none of them contaminate the other, the system python stuff is left alone and everything just works, including using multiple version of python side by side.
Each project gets' its own folder where all the code for that project lives. In each of those project folders, a venv is created in it and it is used just for that project.
/home/pi/projects/proj1/venv
/home/pi/projects/proj2/venv
/home/pi/projects/proj3/venv
And on and on.
Statistics: Posted by dlflannery — Thu Aug 01, 2024 12:00 pm