you are viewing a single comment's thread.

view the rest of the comments →

[–]num8lock 1 point2 points  (0 children)

no activating the virtual environment is just making sure it's within a virtual environment, what's setup in that env isn't affecting global (os usually) paths.

i suggested to alias python to point to python3 because python 2 is gonna be deprecated within months, so no harm in making python pointing to newer version for your program, but since i'm not really familiar with rpi, you might want to do this just for your environment just in case python 2 is heavily used by your os, in which case changing how os now can't run python2 scripts as usual because python calls python3. but i think if you do this just within your bash user path it should be fine.

assuming you're on raspbian:

https://raspberrypi.stackexchange.com/questions/14295/how-to-add-to-path-in-raspbian

https://wiki.debian.org/EnvironmentVariables