why would use virtual environment in python code example
Example 1: how to use virtual environment python
python3 -m venv env
Example 2: how virtual environment in python works
>>> import sys
>>> sys.prefix
'/System/Library/Frameworks/Python.framework/Versions/3.5'