python make environment code example
Example 1: python create environment variable
import os
os.environ['variable_name'] = 'variable_value'
Example 2: how to use virtual environment python
python3 -m venv env
Example 3: create new python environment
py -m venv env
Example 4: how virtual environment in python works
>>> import sys
>>> sys.prefix
'/System/Library/Frameworks/Python.framework/Versions/3.5'