updating python in virtual environtment to latest version code example Example: venv upgrade python python3 -m venv --upgrade ENV_DIR