install python 2.7 venv code example Example: pip3 venv install python3 -m venv /path/to/new/virtual/environment source <venv>/bin/activate