• One environment/ container for each application • Isolation of binaries and libraries in each container • Avoid pollution to the underlying system
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
How to Create a Virtual Environment
# Create directory for each virtual environment # Python 2 mkdir py2project cd py2project
# Python 3 mkdir py3project cd py3project
# Create virtual environment for Python 2 virtualenv py2-venv
# Create virtual environment for Python 3 virtualenv -p python3 <virtual environment name> ## p - Python interpreter to use # or virtualenv <virtual environment name> --python=python3 # or python3 -m venv <virtual environment name> ## m - module to use