Python Virtual ENVironment – venv

VENV, short for Virtual ENVironment, helps you to create a a virtual environment in which you can install python and modules. Without disrupting the system-wide python installation with its modules.Commands issued are for a linux system.

Installation is very straight forward.

python3 -m venv .venv

Activation:

source .venv/bin/activate

After activation you’ll see a slight change in the prompt. It is prepended with (venv)

Installation of modules needs to be done within venv.

Deactivation of venv:

deactivate

Source : (where did I get all this wisdom from)

First of all a colleague pointed out the exsistance of venv; Thank you Tijs. After that I found the following manuals : https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/

This entry was posted in Programming-Scripting, Python. Bookmark the permalink.