update python virtualenv code example Example 1: venv upgrade python python3 -m venv --upgrade ENV_DIR Example 2: python virtualenv venv python -m venv venv