Venv

See this Real Python article for further details on using venv on Windows.

To create a new virtual environment, you type:

python -m venv [NAME OF ENVIRONMENT]

For example:

python -m venv playbookVenv

You activate it by running activate.bat:

playbookVenv/Scripts/activate

VS Code Shortcut for activating your venv

Instead of running activate.bat from the console, VS Code has a helpful shortcut. Open the folder containing the venv, open the command palette (default shortcut Ctrl+Shift+P), type "Python: Select Interpreter", and select your virtual environment. Now, any new terminal you open will use that venv!