Question
You were told to write a Python program in virtualenv (a layer of virtualization). Why are you being asked to do this?
Answer
Isolation of dependencies is one of the dozen factors in 12 Factor App. Using pip or pip3 on an entire Linux system to install packages for PyPI is inadvisable (according to page 32 of Expert Python Programming).
…
Continue reading “Why Should You Use virtualenv when Using Python?”