Skip to content

Instantly share code, notes, and snippets.

@marcusshepp
Created May 2, 2016 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusshepp/6694257ecea7c3fe07d9161c329f4e95 to your computer and use it in GitHub Desktop.
Save marcusshepp/6694257ecea7c3fe07d9161c329f4e95 to your computer and use it in GitHub Desktop.
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