def _install_requirements(requirements):
    """Install requirements given a path to requirements.txt file."""
    import importlib
    import pip
    pip.main(['install', '-r', requirements])
    pip.utils.pkg_resources = importlib.reload(pip.utils.pkg_resources)
    import site
    importlib.reload(site)
