create virtual environment ubuntu 20.04 code example Example: create venv ubuntu 20.04 sudo apt-get install python3-venv python3 -m venv .venv