Ambiente Virtual Python
python3 -m venv env
python -m virtualenv env #py2
source env/bin/activate
#all this is on same directory
Modern Mosquito
python3 -m venv env
python -m virtualenv env #py2
source env/bin/activate
#all this is on same directory
pip install --user virtualenv
py -m venv env
.\env\Scripts\activate
# installs PIP globally
curl https://bootstrap.pypa.io/get-pip.py | python
# installs virtualenv globally
pip install virtualenv
# creates a virtualenv
virtualenv -p python2.7 venv
# activates the virtualenv
source venv/bin/activate
virtualenv venv --python=python3.10
#you can change python version (eg. python3.10) , Folder name (eg. venv)
python3 -m venv /path/to/new/virtual/environment
#create new virtual environment
python3 -m venv /path/to/new/virtual/environment