Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment