Venv

A virtual environment is a Python environment such that the Python interpreter, libraries and scripts installed into it are isolated from those installed in other virtual environments, and (by default) any libraries installed in a “system” Python, i.e., one which is installed as part of your operating system.

Set up a Virtual Environment in Python

https://www.freecodecamp.org/news/how-to-setup-virtual-environments-in-python/

  • Install venv
pip install virtualenv
  • Create a virtual environment in your project folder using syntax python<version> -m venv <virtual-environment-name>
    • example:
  mkdir projectA
 cd projectA
 python3.8 -m venv env
  • Activate the virtual environment
source env/bin/activate