def pip_install(req_file, constraints_file=None):
 cmd = bin_prefix('pip install --exists-action w --upgrade -r {} '.format(req_file))
 if constraints_file:
  cmd += ' -c {}'.format(constraints_file)
 if WHEELHOUSE_PATH:
  cmd += ' --no-index --find-links={}'.format(WHEELHOUSE_PATH)
 return cmd

def pip_install ( req_file , constraints_file = None ) : cmd = bin_prefix ( 'pip install --exists-action w --upgrade -r {} ' . format ( req_file ) ) if constraints_file : cmd += ' -c {}' . format ( constraints_file ) if WHEELHOUSE_PATH : cmd += ' --no-index --find-links={}' . format ( WHEELHOUSE_PATH ) return cmd
install the package using pip .