how to upgrade pip

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

Also in C++: