pip update package command code example Example 1: pip upgrade package pip install Django --upgrade Example 2: update pip sudo pip3 install --upgrade pip