def CheckRequirements(filename):
 from pip.req import parse_requirements
 errors = []
 for req in parse_requirements(filename):
  req.check_if_exists()
  if (not req.satisfied_by):
   errors.append(req)
 if errors:
  raise RuntimeError(('Requirements not installed: %s' % [str(e) for e in errors]))

def CheckRequirements ( filename ) : from pip . req import parse_requirements errors = [ ] for req in parse_requirements ( filename ) : req . check_if_exists ( ) if ( not req . satisfied_by ) : errors . append ( req ) if errors : raise RuntimeError ( ( 'Requirements not installed: %s' % [ str ( e ) for e in errors ] ) )
parse a pip requirements .