How to activate virtual environment from Windows 10 command prompt

Use the activate script in the Scripts directory of your virtual environment:

> venv\Scripts\activate

This will activate your virtual environment and your terminal will look like this depending on the directory you’re in:

(venv) C:\Users\acer\Desktop>

I hope this helps!

Leave a Comment