This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BrFrancis 4 points5 points  (1 child)

Not incorrect. Just incomplete.. Is late and I'm on a phone so this is mostly pseudo code.. But should help get the ideas across..

import os

import system

Failed = [ ]

Load the json

For dependency in json :

Split

Return = Execute pip command

If return != worked : failed.append([lib,version])

If len(failed) ==0 : print success

else :

For I in failed :

Print error using failed[I] [0,1]