Shell/Bash: create venv in windows Example


Shell/Bash Example: This is the "create venv in windows" Example. compiled from many sources on the internet by

python virtual environment

python3 -m venv env
python -m virtualenv env #py2

source env/bin/activate

#all this is on same directory

create venv in windows

# windows
python -m venv 
# To activate

python create virtualenv

pip install virtualenv # install first
cd projectfolder # go to project folder
python -m venv ./venv # Create a virtual environment named venv
Activate.ps1 # (powershell) start the file  to start the environment
activate.bat # (cmd) start the file  to start the environment
# if it worked you'll see a (venv) in front of your cursor path

how to create environment in python3.7

# by runnin this command you can directly create python environment in with python3.7 version
python3.7 -m venv 

start python virtual

activate venv

create a virtualenv python3

py -m venv env

* Summary: This "create venv in windows" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!