Activating virtual environment for Python in Windows

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

 

 

Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!