it is safe to say is likely one of the most important tools for and broadly understood computer sciences. Given the popularity of Python pip software development is used to effortlessly control installation and life-cycle of publically available packages from their online repositories. pip Python However, every Python developer sooner or later runs into simple issue. How to upgrade all installed Python packages at the same time? Apparently, has no build in mechanism for that. This is why I have decided to provide this simple one-liner, pip pip freeze — local | grep -v ‘^\-e’ | cut -d = -f 1 | xargs -n1 pip install -U Note: Use at your own risk. Some of your packages may require root privileges . Use the version below Version with : root privileges sudo pip2 freeze — local | grep -v ‘^\-e’ | cut -d = -f 1 | xargs -n1 sudo pip2 install - U Got a better way to upgrade all packages? Leave a comment below!
Share Your Thoughts