// // parses requirements from requirements.txt
reqs_path = os.path.join(__location__, "requirements.txt")
install_reqs = parse_requirements(reqs_path, session=PipSession())
reqs = [str(ir.req)for ir in install_reqs]
for r in reqs:
pip.main(["install", "-U", r])
After Change
install_reqs = parse_requirements(reqs_path, session=PipSession())
reqs = []
for ir in install_reqs:
pip.main(["install", str(ir.req or ir.link)])
if ir.req:
reqs.append(str(ir.req))
return reqs