upgrade module version pip code example Example 1: pip upgrade package pip install Django --upgrade Example 2: update pip module pip install [package_name] -U