1#------FOR LINUX/MAC---------#
2#installing venv
3sudo apt-get install python3.6-venv
4#creating virtual env
5python3 -m venv env
6#activating virtual env
7source env/bin/activate
8
9
10#-------FOR WINDOWS----------#
11#installing venv
12py -m pip install --user virtualenv
13#creating virtual env
14py -m venv env
15#activating virtual env
16.\env\Scripts\activate
17
1# First install virtualenv
2!pip3 install virtualenv
3
4# Go to the desired directory which you wish you run your virtual environment.
5cd project_directory
6
7# create a virtual environment called my_virtualenv
8virtualenv my_virtualenv
9
10### to run the virtual environemt run "activate" as in the following command
11.\my_virtualenv\Scripts\activate