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
# Create the virtual environment.
python -m venv venv
# Activate the env.
venv\Scripts\activate.bat
virtualenv -p python3.6 venv
For simple python3
virtualenv -p python3 venv
pip install --user virtualenv
py -m venv env
.\env\Scripts\activate
python3 -m venv tutorial-env
#name : tutorial-env
tutorial-env\Scripts\activate #activate env
deactivate #deactivate env
python3 -m venv env # create env
source env/bin/activate # activate env
deactivate # deactivate env
rm -r env/ # delete env in Linux
pip freeze # show all packages installed
pip install -r requirements.txt # install all packages
pip freeze > requirements.txt # create automatically requirements.txt