1. Installation
You must have already installed python two versions, say python27 and python36.
Then you should have installed pip.
Run either pip or pip3 isntall virtualenv
You can type virtualenv -h
for help info.
Common params
-p used to designate the python version for this virtual environment you want to create.
2. Activate
Use the following commands in windows cmd line
virtualenv -p c:\python36\python.exe py36env
cd py36env
Scripts\activate
python
Then you will see the welcome message:
Python 3.6.0 (default, Jan 23 2017, 20:01:14) [MSC v.1900 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>>
If you want to deactivate, just type:
Scripts\deactivate
in the same directory you executed activate