The blog of a juvenile Geekus biologicus


How to use virtual environments

To not interfere with your os configuration and keep your project reproducible, you should use a virtual environment as long as possible. Virtual environment are a way to isolate your project from the rest of the system, and to avoid dependencies conflicts. Python Virtualenv Lets start by installing the virtualenv package. sudo apt install python3-venv And now you can create venvs for your project: python3 -m venv .venv/myproject It is a good practice not to create a virtualenv with name “venv”, but to use a name that reflects the project you are working on, in order to see directly in which venv you are working.