3 ms·
Some platforms and environments don't have pip handy, or you might not have root access, or you can't install new software for any number of reasons, or the req
by skywhopper 12y ago
Some platforms and environments don't have pip handy, or you might not have root access, or you can't install new software for any number of reasons, or the required libraries are not installed. curl and /bin/sh and openssl are more universal, so it's good to be able to do what you need to do without resorting to installing software.
- chrismdp 12y agoExactly my thinking. Nice to have one thing less to install on a new Jenkins node, for example.
- mdellabitta 12y agoExcept this won't work with files bigger than 5gb. It might be worth the time to do it right.
- skywhopper 12y agoI don't think the author intended this script to solve everyone's problems. It's an interesting exercise and can be useful in some situations. If it's not useful for your needs, then as has been pointed out there are many many other options.
- toomuchtodo 12y ago> It might be worth the time to do it right. The right way is the most simple way for your use case. For files under 5GB, this is one of the right ways.
- chrismdp 12y agoI'll fix it when my game requires update files of >5GB :)
- insertnickname 12y agoYou don't need root to install Python packages with pip. You can install them just for your user. See https://pip.readthedocs.org/en/latest/user_guide.html#user-installs https://pip.readthedocs.org/en/latest/user_guide.html#user-i...
- skywhopper 12y ago... right, which is why I listed all the other reasons you might not be able to install a python package.