python -m pip install --upgrade pip
#for updating pip type the following command in terminal or cmd or powershell python -m pip install --upgrade pip
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}