On 2/24/22 02:33, Dorian ROSSE wrote:
If venv is a reality can I build a program python wit it for more
security ?
No, venv won't give you any additional security if a python module has
malicious code.
If you don't fully trust a python module but you want to run it anyway,
consider building a container image. You can install the required
python modules in the image, and then run them the container mostly
isolated from the rest of your system. If it needs data files (and I
expect that it does), then you can mount a single directory as a volume
in the container so that the python modules have access to those files
but nothing else on your system.
Or, if you don't trust the isolation of containers, then use a virtual
machine.