Pip, with the option “–upgrade” of the “install” command updates a specific package, but you can not update them all.

Update all of them is actually simpler than it may seem because pip also provides the command “freeze” that outputs a list of the installed packages.

By combining them you can update all the installed packages:

for pip freeze pack in `| awk ‘{split ($ 0, a,” == “) print a [1]}’`; do $ pip install pack – upgrade; done

What this command does is to loop over the list of all the installed packages that are returned by “pip freeze”, and pass them, one at a time, to the “install –upgrade” command