1# Open your command shell and enter the below command. This will upgrade all packages system-wide to the latest or newer version available in the Python Package Index (PyPI)
2pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}
3
4#outputs the list of installed packages
5pip freeze > requirements.txt
6
7#updates all packages
8pip install -r requirements.txt --upgrade
9