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

Troubleshooting • Re: Creating a Virtual Environment

$
0
0
Yes, you have missed something. You have to activate it everytime you want to use it.

Or, run python by giving the full path of the binary in the venv and it will know you started it from the venv.

Code:

/home/pi/.venv/bin/python /home/pi/my script.py

Statistics: Posted by memjr — Tue Mar 19, 2024 11:44 pm



Viewing all articles
Browse latest Browse all 5978

Latest Images

Trending Articles



Latest Images