pip upgrade command

C++
python -m pip install --upgrade pip
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#This will update your pip to latest version
python -m pip install pip
#or
python -m pip install –upgrade pip
#try the first one firstpip install 
python -m pip install --upgrade pippip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}
Source

Also in C++: