venv upgrade python code example Example 1: venv upgrade python python3 -m venv --upgrade ENV_DIR Example 2: start python virtual activate venv