pip The current built-in command does not support upgrading all installed Python modules.
List currently installed packages:
pip list
List upgradeable packages:
pip list --outdate
Upgrade a package:
pip install --upgrade requests // mac, linux, unix Add sudo -H
# before the command
for i in `pip list -o --format legacy|awk '{print $1}'` ; do pip install --upgrade $i; done
[global]
trusted-host = mirrors.aliyun.com
index-url = http://mirrors.aliyun.com/pypi/simple
The above is the detailed content of How to upgrade all packages using pip. For more information, please follow other related articles on the PHP Chinese website!