xxxxxxxxxx
# CREATE FOLDER FOR A PROJECT
mkdir project_folder
cd project_folder
# CREATE VIRTUAL ENVIRONMENT
python3.7 -m venv myvenv
# or alternativelly
virtualenv myvenv --python=python3.7
# ACTIVATE VIRTUAL ENVIRONMENT
source myvenv/bin/activate
xxxxxxxxxx
#installing venv
sudo apt-get install python3.6-venv
#creating virtual env
python3 -m venv env
#activating virtual env
source env/bin/activate
xxxxxxxxxx
#for linux
#install venv capabilities
sudo apt-get install python3-venv
#create the virtual environment
python3 -m venv environment_name_here
#activate virtual environment
source environment_name_here/bin/activate
xxxxxxxxxx
python3 -m venv env
python -m virtualenv env #py2
source env/bin/activate
#all this is on same directory
xxxxxxxxxx
#create the venv
python -m venv name_virtual_env
#or
python3 -m venv name_virtual_env
#activate venv
#linux:
source name_virtual_env/bin/activate
#windows
name_virtual_env\Scripts\activate
xxxxxxxxxx
# Windows
python -m venv <env_name>
# Linux/MacOS
python3 -m venv <env_name>