setup python3 virtualenv code example
Example 1: python virtual environment
python3 -m venv env
python -m virtualenv env #py2
source env/bin/activate
#all this is on same directory
Example 2: virtualenv -p python3
virtualenv -p python3.6 venv
For simple python3
virtualenv -p python3 venv
Example 3: venv
python -m venv c:\path\to\myenv
Example 4: install virtualenv Python
pip install virtualenv
Example 5: create virtualenv python3
python3 -m venv /path/to/new/virtual/environment
Example 6: install virtualenv Python
virtualenv env