How to add virtual environment to python code example Example: python venv python3 -m venv /path/to/new/virtual/environment