how to upgrade your python venv to 3.9 code example Example: create a virtual environment python 3 python3 -m venv /path/to/new/virtual/environment