pip list --outdated
You will get the list of outdated packages.pip install [package] --upgrade
It will upgrade the [package]
and uninstall the previous version.To update pip:
py -m pip install --upgrade pip
Again, this will uninstall the previous version of pip and will install the latest version of pip.