What is venv?
Venv is a python module that support a python environment
Why use venv?
While using venv is not a necessity, it can be quiet helpful. For example, if you have a project to work on with a certain version and want to use another, unsure if it will be more suitable for what you are working on, you can use a virtual environment to set up and test things out, without ruining your original workspace/project
When to use venv?
You can use venv whenever you think it is fit to experiment in a “sandbox” environment
How to install venv:
Note: make sure pip and your preferred version of python are installed
module load pip
pip install python3-devel
Finally, install the venv:
pip install virtualenv
To check:
virtualenv --version
To create a new env:
virtualenv (env name)