Python – Virtual Environment: Running in MacOs and Windows

By PNC No comments

These are straightforward commands to run Python Virtual Environment. Assuming, we’ve already installed the virtual environment on MacOS or Windows.

Take note that, we’ll be naming the virtual environment during setup, the example below which is “env” is the virtual environment name given by the author of this blog. Yours truly, ehem!

The Windows command is…

./env/Scripts/activate

The MacOS command is…

source ../env/bin/activate

That’s it!