how to update python in a virtual environment code example
Example 1: python venv create
python3 -m venv /path/to/new/virtual/environment
Example 2: python virtual environment
python3 -m pip install --user virtualenv
python3 -m venv /path/to/new/virtual/environment
python3 -m pip install --user virtualenv