Skip to content

PIP3 Package Management

Bulk Updating All Python3 Packages with Pip

The following line of code will print out all packages installed with pip and will create a loop that will update each package using pip3 installl -U . This will effectively update all python packages installed on your machine or in your venv (if ran from inside of your venv)

Warnings : - If you do not use Python3 virtual environments, it is possible that updating packages globally could introduce incompatibilities with other packages. - This script will assume that you wish to update all packages and will

pip3 list -o | cut -f1 -d' ' | tr " " "\n" | awk '{if(NR>=3)print}' | cut -d' ' -f1 | xargs -n1 pip3 install -U