To start working with Python venv:
$ apt install python3-pip python3-venv
$ cd your_python_project
(copy your py files, data files, and no libraries into this folder... I recommend getting network working and use scp or putty if windows)
$ python3 -m venv
(wait 1 minute)
$ source venv/bin/activate
(venv) $ pip install python_library_1
(venv) $ pip install python_library_2
(venv) $ pip install python_library_3
(the libraries will be installed somewhere inside the venv folder, leaving your system files intact
)
(venv) $ python3 yourprogram.py
When you are done using your program: $ deactivate
I don't use USB mounting (kernel's gadget storage module), because it feels unreliable to me
$ apt install python3-pip python3-venv
$ cd your_python_project
(copy your py files, data files, and no libraries into this folder... I recommend getting network working and use scp or putty if windows)
$ python3 -m venv
(wait 1 minute)
$ source venv/bin/activate
(venv) $ pip install python_library_1
(venv) $ pip install python_library_2
(venv) $ pip install python_library_3
(the libraries will be installed somewhere inside the venv folder, leaving your system files intact
(venv) $ python3 yourprogram.py
When you are done using your program: $ deactivate
I don't use USB mounting (kernel's gadget storage module), because it feels unreliable to me
Statistics: Posted by robertojguerra — Mon Feb 02, 2026 11:29 pm