I have a project I am developing with python3. I would like to add some status LED functions to it.
If I am not root everything is fine, my activated virtualenv is all good, but I cannot use GPIO (for example gpiozero).
If I sudo run my code my virtualenv does not work properly.
Even if I run
sudo /home/me/.virtualenvs/project/bin/python3 mycode.py
Some libraries normally accessible from my virtualenv are not accessible (will not import)
How do I access both my virtualenv and the GPIO libraries within my python code?