There is not necessary to be so troublesome or install some package.
Update pip packages on Linux shell:
pip list --outdated --format=freeze | awk -F"==" '{print $1}' | xargs -i pip install -U {}
pip list --outdated --format=freeze | awk -F"==" '{print $1}' | xargs -i pip install -U {}
Update pip packages on Windows powershell:
pip list --outdated --format=freeze | ForEach { pip install -U $_.split("==")[0] }
Some points:
- Replace
pipas your python version topip3orpip2. pip list --outdatedto check outdated pip packages.--formaton my pip version 22.0.3 only has 3 types: columns (default), freeze, or json.freezeis better option in command pipes.- Keep command simple and usable as many systems as possible.