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
1python3 -m venv env
2python -m virtualenv env #py2
3
4source env/bin/activate
5
6#all this is on same directory
7
1# for windows 10
2
3py -m venv myvirtualenv
4myvirtualenv\Scripts\activate #!!!! use "\" not "/" !!!!!
1pip install virtualenv
2cd projectfolder #go to project folder
3virtualenv projectname #create the folder projectname
4source projectname/bin/activate
1python3 -m venv tutorial-env
2#name : tutorial-env
3tutorial-env\Scripts\activate #activate env
4deactivate #deactivate env
1# install the package virtualenv
2pip install virtualenv
3
4# setup envioronment for Data engineering pipeline
5virtualenv dataengineer_pipeline
6
7# if using python >= 3.3
8python -m venv dataengineer_pipeline
9
10# start the environment in linux using
11dataengineer_pipeline/bin/activate
12
13# or in windows
14dataengineer_pipeline\Scripts\activate.bat
15
16# when you are done using the environment, type in the command below
17deactivate