def pipinstall()

in workshop-resources/scripts/pip_install.py [0:0]


def pipinstall():
    fname = "requirements.txt"
    with open(fname) as f:
        lines = [line.rstrip() for line in f]
        for line in lines:
            result=run("pip3 install " + line +" --no-deps", shell=True, stdout=PIPE, stderr=PIPE, text=True)
            if result.returncode == 0:
                next
            elif result.returncode == 1:
                errormsg=result.stderr
                error_lines = errormsg.split('\n')
                for line in error_lines:
                    if line.startswith("ERROR: No"):
                        print (line)