how to update version of lib using pip code example Example 1: pip upgrade package pip install Django --upgrade Example 2: pip upgrade package pip install Django -U