python3 -m pip install --upgrade pip code example
Example 1: install pip3
sudo apt install python3-pip
Example 2: pip install --upgrade
# That line of shell code updates library
pip install --upgrade
Example 3: sudo pip3 install
[server]$ pip3 --version
pip 18.1 from /home/username/opt/python-3.6.2/lib/python3.6/site-packages/pip (python 3.6)
Example 4: python -m pip install --upgrade pip
# That line of shell code updates pip