marcus-s
5/2/2016 - 1:37 PM

when pip installing a requirements file fails on something stupid

when pip installing a requirements file fails on something stupid

# collects and installs each requirement fully one at a time.
# rather than collecting all packages then installing.

import pip
from subprocess import call

with open("requirements.txt", "r") as req:
    for package in req:
    call("pip install " + package, shell=True)