venv virtual code example Example 1: python venv python3 -m venv /path/to/new/virtual/environment Example 2: create new python environment py -m venv env