def install_dependencies()

in source/scripts/pip_install_dependencies.py [0:0]


def install_dependencies(function_path):
    """get dependencies in requirements.txt

    """
    function_path = os.path.normpath(function_path)
    requirements_path = os.path.join(function_path, 'requirements.txt')
    if os.path.isfile(requirements_path):
        try:
            subprocess.call(["pip", "install", "-r", requirements_path, "--upgrade"])
        except Exception as e:
            print("Error: %s" % (e))