I am installing a list of packages with pip-python using the command
pip install -r requirements.txt
sometimes it fails installing packages for whatever reason. Is it possible to have it continue the the next package even with these failures?
I am installing a list of packages with pip-python using the command
pip install -r requirements.txt
sometimes it fails installing packages for whatever reason. Is it possible to have it continue the the next package even with these failures?
You could write a little wrapper script to call pip iteratively, something like:
which you could call like
pipreqs.py requirements.txt --some --other --pip --args
.Note that this only applies the "continue despite failure" motto one level deep---if pip can't install a sub-requirement of something listed, then of course the parent requirement will still fail.
I have the same problem. continuing on the line of @Greg Haskins, maybe this bash one-liner is more succinct:
(for the non-shellscripters: it calls
pip install
for each of the listed packages)the same note on the dependancies failure applies of course here!
On Windows command prompt/ cmd: