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