def pip_install_req_file(req_file):
 pip_cmd = 'pip install -q --disable-pip-version-check --exists-action w'
 sh('{pip_cmd} -r {req_file}'.format(pip_cmd=pip_cmd, req_file=req_file))

def pip_install_req_file ( req_file ) : pip_cmd = 'pip install -q --disable-pip-version-check --exists-action w' sh ( '{pip_cmd} -r {req_file}' . format ( pip_cmd = pip_cmd , req_file = req_file ) )
pip install the requirements file .