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