From a1226a38d8aa771893b557998f15a9a577dd5787 Mon Sep 17 00:00:00 2001 From: Pravin Pratap Date: Wed, 31 Oct 2018 09:17:27 +0530 Subject: [PATCH] Added virtualenv specifics for Windows (#20540) Added the specific command to be executed on a Microsoft Windows-based system. --- guide/english/python/virtual-environments/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guide/english/python/virtual-environments/index.md b/guide/english/python/virtual-environments/index.md index fd8f3d1528..3bdde4c342 100644 --- a/guide/english/python/virtual-environments/index.md +++ b/guide/english/python/virtual-environments/index.md @@ -51,10 +51,20 @@ lsvirtualenv ### Activate an Environment +Note : On Windows, activating a virtual environment requires the user to have the permission to run scripts. + Before you can start using the environment you need to activate it: + +For Mac OS or Linux systems : + ``` source my-env/bin/activate ``` +And for Windows : + +``` +.\my-env\Scripts\activate.bat +``` This ensures that only packages under `my-env/` are used.