Please post the output of this:I created a file memjr.sh containing the code you provided, and ran it with:Code:
#!/bin/bashcd /home/pi/Documents/HVAC/source ./env/bin/activatewhich python
The result was: /home/pi/Documents/HVAC/env/bin/pythonCode:
bash memjr.sh
I also just entered the commands one-by-one at the CLI and got the identical result.By creating the venv with or without copying things I meant with or without --system-site-packages option.Also, I re read some of the stuff above and I am confused by this:What does creating the venv with or without copy things? Copying what? To create a venv, there is not need to copy anything. You just issue the command to create the venv, activate it and then install packages in it with pip.I had created the venv without copying over the main package distribution. So I recreated it doing that copy-over and then the install succeeded.
What was the command you used to create the venv?
I initially created the venv by this command from the home/pi/Documents/HVAC directory.
And it could be activated from the command line by:Code:
python3 -m venv env
Code:
env/bin/activate
or this:After pip w1thermsensor, with the venv activated failed, I executed this with the venv deactivated:Code:
./env/bin/activate
Code:
python3 -m venv env --system-site-packages
Then, after activating the venv, the pip install worked.
Statistics: Posted by dlflannery — Thu Aug 01, 2024 9:08 pm