These code snippets show how to activate and use a virtual environment with Python in a Windows cli.
Prerequisites: You have python in your Paths environments working in your cli
python -m venv venv
venv\Scripts\activate
Now you see your terminal switch to a virtual environment:
(venv) PS C:\DEV\myproject