Is it possible to achieve the same behaviour of:
pip install -r requirements.txt
But programmatically with python?
For example (pseudocode):
from pip.reqs import install_requirements
install_requirements(file='requirements.txt')
And if not why? What is the best practice?