When you run .\venv\Scripts\Activate.ps1, you might get an error. Why does this happen?
On Windows, PowerShell blocks .ps1 scripts by default. The strict execution policy is the cause.
Change the execution policy, then run .\venv\Scripts\Activate.ps1 again.
Now your Python virtual environment is active.