pip virtual eenv code example
Example 1: install virtualenv
pip install virtualenv
activate it by doing this:
cd myproject/Scripts/activate
Example 2: python virtual environment
python3 -m venv env
python -m virtualenv env #py2
source env/bin/activate
#all this is on same directory
Example 3: activate venv
source env/bin/activate
Example 4: how to activate the pytho virtual environment
mypthon\Scripts\activate